moksha/public/javascript/ui/moksha.ui.tabs.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 97f503f1cb6ca994ff7ac67d2a4d5b8677ce9d68
Author: John (J5) Palmieri <johnp(a)redhat.com>
Date: Tue Apr 14 13:48:06 2009 -0400
get the href attr instead of the fully qualified url
* this allows us to check if the link was relative since we only rewrite
relative URLs
diff --git a/moksha/public/javascript/ui/moksha.ui.tabs.js
b/moksha/public/javascript/ui/moksha.ui.tabs.js
index 40683c4..e588944 100644
--- a/moksha/public/javascript/ui/moksha.ui.tabs.js
+++ b/moksha/public/javascript/ui/moksha.ui.tabs.js
@@ -74,8 +74,8 @@ $.widget("ui.mokshatabs", {
self.$panels = self.$panels.add(a.hash);
// remote tab
else if ($(a).attr('href') != '#') { // prevent loading the
page itself if href is just "#"
- $.data(a, 'href.tabs', a.href); // required for restore on
destroy
- $.data(a, 'load.tabs', a.href); // mutable
+ $.data(a, 'href.tabs', a.attr('href')); // required for
restore on destroy
+ $.data(a, 'load.tabs', a.attr('href')); // mutable
var id = self.tabId(a);
a.href = '#' + id;
var $panel = $('#' + id + ':first', self.element);
Show replies by date