diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js index 26d4c2ad3..4a6c5c31d 100644 --- a/ui/ui.tabs.js +++ b/ui/ui.tabs.js @@ -145,10 +145,10 @@ $.widget("ui.tabs", { } }); } - if (!o.selected && o.cookie) { + if (typeof o.selected != 'number' && o.cookie) { o.selected = parseInt(self._cookie(), 10); } - if (!o.selected && this.$lis.filter('.ui-tabs-selected').length) { + if (typeof o.selected != 'number' && this.$lis.filter('.ui-tabs-selected').length) { o.selected = this.$lis.index(this.$lis.filter('.ui-tabs-selected')); } o.selected = o.selected || 0;