Commit f1b763a02a3bf5efbb0123b5f5184d5edbbae3ee

  • avatar
  • arvind
  • Thu Mar 14 14:14:58 IST 2013
Fixing minor bug
			 - Editor button on the index page misbehaved because of having hardcoded url to it.  Fix is to use url_for to generate the url.
  • Diff rendering mode:
  • inline
  • side by side

templates/index.html

185 }185 }
186 function editTreeJSON() {186 function editTreeJSON() {
187 var json = $('#tree-json-loaded').val();187 var json = $('#tree-json-loaded').val();
188 window.open('/editor?json='+json);
188 window.open("{{ url_for('editor') }}?json="+json);
189 }189 }
190 </script>190 </script>
191 <script type="text/javascript" src="static/jit.js"></script>191 <script type="text/javascript" src="static/jit.js"></script>