moksha/public/javascript/ui/moksha.ui.tabs.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 553ac2dd5428b406e04280425213619099e20d55 Author: John (J5) Palmieri johnp@redhat.com Date: Thu Apr 23 16:29:11 2009 -0400
fix it so we still control static links (for filtering purposes)
diff --git a/moksha/public/javascript/ui/moksha.ui.tabs.js b/moksha/public/javascript/ui/moksha.ui.tabs.js index c18824c..ad92011 100644 --- a/moksha/public/javascript/ui/moksha.ui.tabs.js +++ b/moksha/public/javascript/ui/moksha.ui.tabs.js @@ -63,13 +63,17 @@ $.widget("ui.mokshatabs", {
var tab_id = this.element.attr('id') + '_tabs'; this.$lis = $('#' + tab_id + ' ul li:has(>a[href])', this.element); - // filter out static links + + this.$tabs = this.$lis.map(function() { return $('a', this)[0]; }); + + // filter out static link list items after we have extracted their + // actual links. We still want to control the linking but $lis is + // used for mapping dynamic tabs to panels this.$lis = this.$lis.map(function() { if (!$('a', this).hasClass('static_link')) return this; } ); - this.$tabs = this.$lis.map(function() { return $('a', this)[0]; }); this.$panels = $([]);
var self = this, o = this.options;
moksha-commits@lists.fedorahosted.org