Commit b56891b4a69560b5aa53d687c7f38d6b61a340ae

Add JS config for model URLs
  
9191
9292 var Pages = Backbone.Collection.extend({
9393 model: M.types.model.Page,
94 url: '/page'
94 url: M.PageURL()
9595 });
9696
9797 /* view to manage each page and their properties - change page properties,
  
117117 customMenu: false
118118 },
119119 url: function() {
120 return '/menu/' + this.id;
120 return M.MenuURL() + this.id;
121121 },
122122 initialize: function() {
123123 this.id = this.get('id');
  
3434 <script>
3535 //Code to initialize the framework
3636 window.M = window.M || {};
37 M.MenuURL = function() { return "{{ url_for('insertPage') }}"};
38 M.PageURL = function() { return "{{ url_for('updateMenu') }}"; };
3739 M.site_content = {{ content|tojson|safe }};
3840 window.onload = function() {
3941 M.init();