0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

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
This commit is contained in:
Shashank Mehta 2014-03-03 02:30:09 +05:30
parent 383da31484
commit ab2656960a

View file

@ -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');