refactor(js)!: It's 2020 already, drop backward compatibility with jquery-ui 1.10.
@@ -375,11 +375,7 @@ 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));
- }
});
});
},
@@ -387,11 +383,7 @@ var google, django, gettext;
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));
- }
});
}
};
