From ab2656960a9ed7c93b58857d519b7c1d78961ea7 Mon Sep 17 00:00:00 2001 From: Shashank Mehta Date: Mon, 3 Mar 2014 02:30:09 +0530 Subject: [PATCH] Prevent settings page from rendering same page twice Closes #2316 - There was a check to prevent rerendering of same content pane but it wasn't working - Fixed the check for this --- core/client/views/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client/views/settings.js b/core/client/views/settings.js index 9283924307..bc40977f99 100644 --- a/core/client/views/settings.js +++ b/core/client/views/settings.js @@ -61,7 +61,7 @@ Ghost.router.navigate('/settings/' + id + '/'); Ghost.trigger('urlchange'); - if (this.pane && id === this.pane.el.id) { + if (this.pane && id === this.pane.id) { return; } _.result(this.pane, 'destroy');