מדיה ויקי:Gadget-Collapsetables.js: הבדלים בין גרסאות בדף
מ ננסה בארגז חול |
מאין תקציר עריכה |
||
| שורה 46: | שורה 46: | ||
for ( var i = 0; i < Tables.length; i++ ) { | for ( var i = 0; i < Tables.length; i++ ) { | ||
if ( Tables[i]. | if ($(Tables[i]).hasClass("collapsible") ) { | ||
NavigationBoxes[ tableIndex ] = Tables[i]; | NavigationBoxes[ tableIndex ] = Tables[i]; | ||
Tables[i].setAttribute( "id", "collapsibleTable" + tableIndex ); | Tables[i].setAttribute( "id", "collapsibleTable" + tableIndex ); | ||
| שורה 78: | שורה 78: | ||
for ( var i = 0; i < tableIndex; i++ ) { | for ( var i = 0; i < tableIndex; i++ ) { | ||
if ( NavigationBoxes[i]. | if ( $(NavigationBoxes[i]).hasClass("collapsed") || ( tableIndex >= autoCollapse && $(NavigationBoxes[i]).hasClass("autocollapse") ) ) { | ||
collapseTable( i ); | collapseTable( i ); | ||
} | } | ||