aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.tabs.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-01-22 13:10:18 +0000
committerRichard Worth <rdworth@gmail.com>2009-01-22 13:10:18 +0000
commit1b891501f2c5e7e6f99839121e210aa38557dad6 (patch)
treeb2d363803bdc8fdc2406b1425ebe9a6e8af6269a /ui/ui.tabs.js
parent6b80dc29c8a888029f71edb73aee4e166f54214b (diff)
downloadjquery-ui-1b891501f2c5e7e6f99839121e210aa38557dad6.tar.gz
jquery-ui-1b891501f2c5e7e6f99839121e210aa38557dad6.zip
whitespace
Diffstat (limited to 'ui/ui.tabs.js')
-rw-r--r--ui/ui.tabs.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js
index 3d566e5d1..bc6f6f0f8 100644
--- a/ui/ui.tabs.js
+++ b/ui/ui.tabs.js
@@ -93,7 +93,7 @@ $.widget("ui.tabs", {
this.$lis = $('li:has(a[href])', this.list);
this.$tabs = this.$lis.map(function() { return $('a', this)[0]; });
this.$panels = $([]);
-
+
var self = this, o = this.options;
var fragmentId = /^#.+/; // Safari 2 reports '#' for an empty hash
@@ -103,15 +103,15 @@ $.widget("ui.tabs", {
// inline tab
if (fragmentId.test(href))
self.$panels = self.$panels.add(self._sanitizeSelector(href));
-
+
// remote tab
else if (href != '#') { // prevent loading the page itself if href is just "#"
$.data(a, 'href.tabs', href); // required for restore on destroy
-
+
// TODO until #3808 is fixed strip fragment identifier from url
// (IE fails to load from such url)
$.data(a, 'load.tabs', href.replace(/#.*$/, '')); // mutable data
-
+
var id = self._tabId(a);
a.href = '#' + id;
var $panel = $('#' + id);
@@ -122,7 +122,7 @@ $.widget("ui.tabs", {
}
self.$panels = self.$panels.add($panel);
}
-
+
// invalid tab href
else
o.disabled.push(i + 1);