Mercurial > wikked
changeset 290:e3c1bde2f597
Fix some bug in the front-end when cancelling an edit.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sat, 27 Sep 2014 22:46:34 -0700 |
parents | a01a64deb70d |
children | 035c7a58e9aa |
files | wikked/assets/js/wikked/models.js wikked/assets/js/wikked/views.js |
diffstat | 2 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/assets/js/wikked/models.js Sat Sep 27 14:11:00 2014 -0700 +++ b/wikked/assets/js/wikked/models.js Sat Sep 27 22:46:34 2014 -0700 @@ -322,7 +322,7 @@ this._goToReadPage(); }, _goToReadPage: function() { - this.navigate('/read/' + this.get('path') + '?no_redirect=1', + this.navigate('/read/' + this.get('path') + '?no_redirect', { trigger: true }); } });
--- a/wikked/assets/js/wikked/views.js Sat Sep 27 14:11:00 2014 -0700 +++ b/wikked/assets/js/wikked/views.js Sat Sep 27 22:46:34 2014 -0700 @@ -441,7 +441,6 @@ defaultTemplateSource: tplEditPage, dispose: function() { PageEditView.__super__.dispose.apply(this, arguments); - this._removePreview(); }, renderCallback: function() { PageEditView.__super__.renderCallback.apply(this, arguments);