aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.tabs.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.tabs.js')
-rw-r--r--ui/ui.tabs.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js
index 1564af841..4b92cf249 100644
--- a/ui/ui.tabs.js
+++ b/ui/ui.tabs.js
@@ -21,9 +21,12 @@ $.widget("ui.tabs", {
},
_setData: function(key, value) {
- if (key == 'selected')
+ if (key == 'selected') {
+ if (this.options.collapsible
+ && value == this.options.selected) return;
+
this.select(value);
-
+ }
else {
this.options[key] = value;
if (key == 'deselectable')