Commit 9744934210b1c0d6d54678b037f766d9db00d803

Fix bug while loading page without a hash URL

-  When default domain was loaded without hash URL, the framework did not
   navigate to the default first page. Fix that.
  • Diff rendering mode:
  • inline
  • side by side

static/js/editor.js

209 console.log('saved', model, response);209 console.log('saved', model, response);
210 model.set(response.page);210 model.set(response.page);
211 model.id = response.page.id;211 model.id = response.page.id;
212 //console.log(model);
213 //console.log(M.pages.models);
214 M.pagelistview.render();212 M.pagelistview.render();
215 },213 },
216 error: function(model, xhr) {214 error: function(model, xhr) {

static/js/mouchak.js

164 var app_router = new AppRouter();164 var app_router = new AppRouter();
165 Backbone.history.start();165 Backbone.history.start();
166166
167 //var startpage = M.pages.models[0].get('name');
168 //app_router.navigate(startpage, {trigger: true});
167 if(!location.hash) {
168 var startpage = M.pages.models[0].get('name');
169 app_router.navigate(startpage, {trigger: true});
170 }
169171
170 //M.simHeir();172 //M.simHeir();
171};173};