moksha/public/javascript/ui/moksha.ui.tabs.js | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 39a90cd4032745b64150a6f827714caf423666b1
Author: John (J5) Palmieri <johnp(a)redhat.com>
Date: Mon Mar 29 14:47:09 2010 -0400
make sure we remove the loading class
diff --git a/moksha/public/javascript/ui/moksha.ui.tabs.js
b/moksha/public/javascript/ui/moksha.ui.tabs.js
index 5edabdf..3b9663b 100644
--- a/moksha/public/javascript/ui/moksha.ui.tabs.js
+++ b/moksha/public/javascript/ui/moksha.ui.tabs.js
@@ -482,7 +482,6 @@ $.widget("ui.mokshatabs", $.ui.tabs, {
$li.addClass('ui-state-default
ui-corner-top').data('destroy.tabs', true);
// try to find an existing element before creating a new one
- // J5: Check if they correctly select the panel inside the element
var $panel = $('#' + id, this.list);
if (!$panel.length) {
$panel = $(o.panelTemplate).attr('id',
id).data('destroy.tabs', true);
@@ -601,7 +600,7 @@ $.widget("ui.mokshatabs", $.ui.tabs, {
return $inner.length && $inner.is(':not(img)') &&
$inner || $parent;
};
var cleanup = function() {
- self.anchors.filter('.' +
o.loadingClass).removeClass(o.loadingClass)
+
self.anchors.filter('.ui-tabs-loading').removeClass('ui-tabs-loading')
.each(function() {
if (o.spinner)
inner(this).parent().html(inner(this).data('label.tabs'));
@@ -640,7 +639,7 @@ $.widget("ui.mokshatabs", $.ui.tabs, {
this.xhr.abort();
cleanup();
}
- //a.addClass(o.loadingClass);
+
setTimeout(function() { // timeout is again required in IE, "wait" for
id being restored
self.xhr = moksha.html_load(moksha.url(url), {}, success_cb,
self.$overlay_div)
}, 0);
Show replies by date