From c9c9e081a892cdd426cd54f62877e4803ee99c92 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 23 Apr 2013 20:34:27 -0700 Subject: [PATCH] Don't activate view button until its set --- UI/Series/Index/SeriesIndexLayout.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/UI/Series/Index/SeriesIndexLayout.js b/UI/Series/Index/SeriesIndexLayout.js index 1a3a49b9a..0bf484407 100644 --- a/UI/Series/Index/SeriesIndexLayout.js +++ b/UI/Series/Index/SeriesIndexLayout.js @@ -136,14 +136,11 @@ define([ changeView: function (e) { e.preventDefault(); var view = parseInt($(e.target).data('target')); + var target = $(e.target); if (isNaN(view)) { view = parseInt($(e.target).parent('a').data('target')); - this.setActive($(e.target).parent('a')); - } - - else{ - this.setActive($(e.target)); + target = $(e.target).parent('a'); } if (view === 1) { @@ -160,6 +157,8 @@ define([ NzbDrone.Config.SeriesViewStyle(0); this.showTable(); } + + this.setActive(target); }, setActive: function (element) {