Commit 1bf7f9507cc87d6319427878da97a12f522967b9
- Diff rendering mode:
- inline
- side by side
mouchak/static/js/editor.js
(7 / 1)
  | |||
254 | 254 | this.model.set({'showNav': false}); | |
255 | 255 | } | |
256 | 256 | ||
257 | //console.log('mode before save', this.model.toJSON()); | ||
257 | //code to remove nested page and status fields..a previous commit should | ||
258 | //fix the issue. the following code is for update data older than the | ||
259 | //commit. This should update old nested. Can remove after sometime? | ||
260 | if(this.model.get('page') || this.model.get('status')) { | ||
261 | this.model.unset('page'); | ||
262 | this.model.unset('status'); | ||
263 | } | ||
258 | 264 | ||
259 | 265 | this.model.save({}, { | |
260 | 266 | success: function(model, response) { |