mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-03-03 15:12:13 +02:00
Don't activate view button until its set
This commit is contained in:
parent
46bc97ef92
commit
c9c9e081a8
@ -136,14 +136,11 @@ define([
|
|||||||
changeView: function (e) {
|
changeView: function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var view = parseInt($(e.target).data('target'));
|
var view = parseInt($(e.target).data('target'));
|
||||||
|
var target = $(e.target);
|
||||||
|
|
||||||
if (isNaN(view)) {
|
if (isNaN(view)) {
|
||||||
view = parseInt($(e.target).parent('a').data('target'));
|
view = parseInt($(e.target).parent('a').data('target'));
|
||||||
this.setActive($(e.target).parent('a'));
|
target = $(e.target).parent('a');
|
||||||
}
|
|
||||||
|
|
||||||
else{
|
|
||||||
this.setActive($(e.target));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (view === 1) {
|
if (view === 1) {
|
||||||
@ -160,6 +157,8 @@ define([
|
|||||||
NzbDrone.Config.SeriesViewStyle(0);
|
NzbDrone.Config.SeriesViewStyle(0);
|
||||||
this.showTable();
|
this.showTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.setActive(target);
|
||||||
},
|
},
|
||||||
|
|
||||||
setActive: function (element) {
|
setActive: function (element) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user