Mercurial > wikked
changeset 189:b69e957fd89a
Don't use hard-coded URLs for main page.
Don't request anything when loading the "new page" form.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 05 Feb 2014 00:24:09 -0800 |
parents | bfe3979bf323 |
children | 3e14f66670f1 |
files | wikked/assets/js/wikked/app.js wikked/assets/js/wikked/models.js |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/assets/js/wikked/app.js Tue Feb 04 23:55:29 2014 -0800 +++ b/wikked/assets/js/wikked/app.js Wed Feb 05 00:24:09 2014 -0800 @@ -97,7 +97,7 @@ var view = new Views.PageEditView({ model: new Models.PageEditModel({ is_new: true, create_in: path }) }); - this.viewManager.switchView(view); + this.viewManager.switchView(view, false); this.navigate('/create/' + path); }, editPage: function(path) {
--- a/wikked/assets/js/wikked/models.js Tue Feb 04 23:55:29 2014 -0800 +++ b/wikked/assets/js/wikked/models.js Wed Feb 05 00:24:09 2014 -0800 @@ -137,7 +137,7 @@ idAttribute: 'path', defaults: function() { return { - path: "main-page" + path: "" }; }, initialize: function() { @@ -345,7 +345,7 @@ action: 'revision', defaults: function() { return { - path: "main-page", + path: "", rev: "tip" }; }, @@ -384,7 +384,7 @@ action: 'diff', defaults: function() { return { - path: "main-page", + path: "", rev1: "tip", rev2: "" };