moksha/public/javascript/ui/moksha.ui.tabs.js | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
New commits:
commit 5ac10454308bbb240e63758e46679bb3fb21ebcf
Author: John (J5) Palmieri <johnp(a)redhat.com>
Date: Mon Mar 29 13:53:13 2010 -0400
fix issues with nav containers finding their parents
diff --git a/moksha/public/javascript/ui/moksha.ui.tabs.js
b/moksha/public/javascript/ui/moksha.ui.tabs.js
index 1f5dcfb..b31720b 100644
--- a/moksha/public/javascript/ui/moksha.ui.tabs.js
+++ b/moksha/public/javascript/ui/moksha.ui.tabs.js
@@ -32,6 +32,7 @@
$.widget("ui.mokshatabs", $.ui.tabs, {
options: {
staticLoadOnClick: false,
+ container_level: 0,
// Ajax
spinner: 'Loading…',
@@ -53,7 +54,7 @@ $.widget("ui.mokshatabs", $.ui.tabs, {
_findParentNav: function() {
var parent = this.element.parent();
var container_level = 0;
- var nav_class = this.options.navContainerClass;
+ var nav_class = 'moksha-ui-navcontainer';
while (parent.length && !container_level) {
if (parent.hasClass(nav_class))
@@ -515,9 +516,9 @@ $.widget("ui.mokshatabs", $.ui.tabs, {
},
// get the selected tab index give a location hash
- hashToIndex: function(hash, level) {
- var hash = location.hash;
- var offset = 0;
+ hashToIndex: function(_hash, level) {
+ var hash = _hash;
+ var offset = 0;
//remove the has because we only care about the / delimiter
if (hash[0] == "#")
Show replies by date