r2131 - trunk/ui
r2131 - trunk/ui
Author: klaus.hartl
Date: Wed Feb 25 12:16:27 2009
New Revision: 2131
Modified:
trunk/ui/ui.tabs.js
Log:
Tabs: fixes #4033 as well for the case a base tag is being used
Modified: trunk/ui/ui.tabs.js
==============================================================================
--- trunk/ui/ui.tabs.js (original)
+++ trunk/ui/ui.tabs.js Wed Feb 25 12:16:27 2009
@@ -87,7 +87,9 @@
// 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;
}