mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-01-30 00:17:59 -05:00
UI Tabs: update selected property after add/remove, fixes #3065
This commit is contained in:
@@ -73,6 +73,7 @@ $.widget("ui.tabs", {
|
||||
o.disabled.push(i + 1);
|
||||
});
|
||||
|
||||
// initialization from scratch
|
||||
if (init) {
|
||||
|
||||
// attach necessary classes for styling if not present
|
||||
@@ -153,6 +154,9 @@ $.widget("ui.tabs", {
|
||||
});
|
||||
|
||||
}
|
||||
// update selected after add/remove
|
||||
else
|
||||
o.selected = this.$lis.index( this.$lis.filter('.' + o.selectedClass)[0] );
|
||||
|
||||
// disable tabs
|
||||
for (var i = 0, li; li = this.$lis[i]; i++)
|
||||
|
||||
Reference in New Issue
Block a user