moksha/public/javascript/ui/moksha.ui.tabs.js | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
New commits:
commit 85a0f7ad147919d05c5a00204cc4a482c1bb6989
Author: John (J5) Palmieri <johnp(a)redhat.com>
Date: Tue Apr 28 18:48:46 2009 -0400
short circut static links because the href is now correct
diff --git a/moksha/public/javascript/ui/moksha.ui.tabs.js
b/moksha/public/javascript/ui/moksha.ui.tabs.js
index 98a5600..90d03d8 100644
--- a/moksha/public/javascript/ui/moksha.ui.tabs.js
+++ b/moksha/public/javascript/ui/moksha.ui.tabs.js
@@ -321,10 +321,16 @@ $.widget("ui.mokshatabs", {
this.$tabs.unbind('.tabs').bind(o.event, function() {
//var trueClick = e.clientX; // add to history only if true click occured,
not a triggered click
+
+ // if we have a static link use that instead
+ var isStaticLink = $(this).hasClass('static_link');
+ if (isStaticLink)
+ return true;
+
var $li = $(this).parents('li:eq(0)'),
$hide = self.$panels.filter(':visible'),
$show = $($(this).data('dynamic_href.tabs') + ':first',
self.element),
- isStaticLink = $(this).hasClass('static_link');
+
// If tab disabled or
// or is already loading or click callback returns false stop here.
@@ -347,11 +353,6 @@ $.widget("ui.mokshatabs", {
href = self._stripUUID(href);
- if (isStaticLink) {
- moksha.goto(href);
- return false;
- }
-
//only update the hash level we care about
if (o.container_level != 0) {
var hash = self._generateTabLink(href.substr(1), false);
Show replies by date