Commit f1b763a02a3bf5efbb0123b5f5184d5edbbae3ee
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.
| | | | 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); | | 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> |
---|