Merge pull request #2317 from shashankmehta/settings-rendering-issue

Prevent settings page from rendering same page twice
This commit is contained in:
Hannah Wolfe 2014-03-04 12:06:25 +00:00
commit 13fa84a8bf

View File

@ -61,7 +61,7 @@
Ghost.router.navigate('/settings/' + id + '/'); Ghost.router.navigate('/settings/' + id + '/');
Ghost.trigger('urlchange'); Ghost.trigger('urlchange');
if (this.pane && id === this.pane.el.id) { if (this.pane && id === this.pane.id) {
return; return;
} }
_.result(this.pane, 'destroy'); _.result(this.pane, 'destroy');