Skip to content

Commit

Permalink
refactor(js)!: It's 2020 already, drop backward compatibility with jq…
Browse files Browse the repository at this point in the history
…uery-ui 1.10.
  • Loading branch information
last-partizan committed Sep 30, 2020
1 parent 5fcc4ce commit d8f432a
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,23 +375,15 @@ var google, django, gettext;
var self = this;
this.$select.change(function () {
$.each(tabs, function (idx, tab) {
try { //jquery ui => 1.10 api changed, we keep backward compatibility
tab.tabs('select', parseInt(self.$select.val(), 10));
} catch(e) {
tab.tabs('option', 'active', parseInt(self.$select.val(), 10));
}
tab.tabs('option', 'active', parseInt(self.$select.val(), 10));
});
});
},

activateTab: function(tabs) {
var self = this;
$.each(tabs, function (idx, tab) {
try { //jquery ui => 1.10 api changed, we keep backward compatibility
tab.tabs('select', parseInt(self.$select.val(), 10));
} catch(e) {
tab.tabs('option', 'active', parseInt(self.$select.val(), 10));
}
tab.tabs('option', 'active', parseInt(self.$select.val(), 10));
});
}
};
Expand Down

0 comments on commit d8f432a

Please sign in to comment.