# HG changeset patch # User Ludovic Chabant # Date 1362031322 28800 # Node ID b4599ca2c573d8d932a0cd458895adc71b4fe003 # Parent 3c8e07af93c768a67d3ba532d6525d62e733912a Added support for views that don't need model fetching. Special pages index doesn't need fetching. diff -r 3c8e07af93c7 -r b4599ca2c573 static/js/wikked/app.js --- a/static/js/wikked/app.js Wed Feb 27 22:02:02 2013 -0800 +++ b/static/js/wikked/app.js Wed Feb 27 22:02:02 2013 -0800 @@ -34,6 +34,8 @@ this.el.html(view.el); if (autoFetch || autoFetch === undefined) { view.model.fetch(); + } else { + view.render(); } } @@ -166,7 +168,7 @@ var view = new Views.SpecialPagesView({ model: new Models.SpecialPagesModel() }); - this.viewManager.switchView(view); + this.viewManager.switchView(view, false); this.navigate('/special'); }, showSpecialPage: function(page) {