Commit 5c2775f7232d8cba129b814804630ed52aed18e1

Fix JS config for model URLs
  • Diff rendering mode:
  • inline
  • side by side

mouchak/templates/editor.html

38 <script>38 <script>
39 // initialize editor39 // initialize editor
40 window.M = window.M || {};40 window.M = window.M || {};
41 M.MenuURL = function() { return "{{ url_for('updateMenu') }}"};
42 M.PageURL = function() { return "{{ url_for('insertPage') }}"};
41 M.site_content = {{ content|tojson|safe }};43 M.site_content = {{ content|tojson|safe }};
42 window.onload = function() {44 window.onload = function() {
43 M.editor.init();45 M.editor.init();

mouchak/templates/index.html

34 <script>34 <script>
35 //Code to initialize the framework35 //Code to initialize the framework
36 window.M = window.M || {};36 window.M = window.M || {};
37 M.MenuURL = function() { return "{{ url_for('insertPage') }}"};
38 M.PageURL = function() { return "{{ url_for('updateMenu') }}"; };
37 M.MenuURL = function() { return "{{ url_for('updateMenu') }}"};
38 M.PageURL = function() { return "{{ url_for('insertPage') }}"; };
39 M.site_content = {{ content|tojson|safe }};39 M.site_content = {{ content|tojson|safe }};
40 window.onload = function() {40 window.onload = function() {
41 M.init();41 M.init();