Mercurial > wikked
changeset 56:444ce19d421b
Fixed requests to get the current page's state.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 04 Feb 2013 21:19:48 -0800 |
parents | 494f3c4660ed |
children | 3a6bde935f46 |
files | wikked/static/js/wikked/models.js |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/static/js/wikked/models.js Mon Feb 04 21:19:10 2013 -0800 +++ b/wikked/static/js/wikked/models.js Mon Feb 04 21:19:48 2013 -0800 @@ -161,7 +161,11 @@ }); var PageStateModel = exports.PageStateModel = PageModel.extend({ - urlRoot: '/api/state/' + urlRoot: '/api/state/', + _onChangePath: function(path) { + PageStateModel.__super__._onChangePath.apply(this, arguments); + this.set('url_edit', '/#/edit/' + path); + } }); var MasterPageModel = exports.MasterPageModel = PageModel.extend({