Commit 9744934210b1c0d6d54678b037f766d9db00d803
- Diff rendering mode:
- inline
- side by side
static/js/editor.js
(0 / 2)
  | |||
209 | 209 | console.log('saved', model, response); | |
210 | 210 | model.set(response.page); | |
211 | 211 | model.id = response.page.id; | |
212 | //console.log(model); | ||
213 | //console.log(M.pages.models); | ||
214 | 212 | M.pagelistview.render(); | |
215 | 213 | }, | |
216 | 214 | error: function(model, xhr) { |
static/js/mouchak.js
(4 / 2)
  | |||
164 | 164 | var app_router = new AppRouter(); | |
165 | 165 | Backbone.history.start(); | |
166 | 166 | ||
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 | } | ||
169 | 171 | ||
170 | 172 | //M.simHeir(); | |
171 | 173 | }; |