diff options
author | Klaus Hartl <klaus.hartl@googlemail.com> | 2009-02-25 20:16:27 +0000 |
---|---|---|
committer | Klaus Hartl <klaus.hartl@googlemail.com> | 2009-02-25 20:16:27 +0000 |
commit | 48e551ee0cec83b040b2b5abbc1c99b70e15e126 (patch) | |
tree | 1ec2ca66219ff94172b20cb90d003bdba85807dc /ui/ui.tabs.js | |
parent | 9581c7362549ed8fbd9633fa3183724d004efabf (diff) | |
download | jquery-ui-48e551ee0cec83b040b2b5abbc1c99b70e15e126.tar.gz jquery-ui-48e551ee0cec83b040b2b5abbc1c99b70e15e126.zip |
Tabs: fixes #4033 as well for the case a base tag is being used
Diffstat (limited to 'ui/ui.tabs.js')
-rw-r--r-- | ui/ui.tabs.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js index e50ab29be..191ccbb93 100644 --- a/ui/ui.tabs.js +++ b/ui/ui.tabs.js @@ -87,7 +87,9 @@ $.widget("ui.tabs", { // Same consideration applies for an added tab with a fragment identifier // since a[href=#fragment-identifier] does unexpectedly not match. // Thus normalize href attribute... - if (href.split('#')[0] == location.toString().split('#')[0]) { + + if (href.split('#')[0] == location.toString().split('#')[0] || + $('base').length && href.split('#')[0] == $('base')[0].href) { href = a.hash; a.href = href; } |