Template:Team:Edinburgh/Code

From 2013.igem.org

(Difference between revisions)
Line 360: Line 360:
return function() {
return function() {
active=1;
active=1;
-
for (var j=0; j < children.length; j++) {
+
for (var j=0; j < menu_links.length; j++) {
-
if (children[j].href.indexOf("Team:Edinburgh/") > -1) {
+
if (menu_links[j].href.indexOf("Team:Edinburgh/") > -1) {
-
if (window.location.href.indexOf(children[j].href) > -1) {
+
if (window.location.href.indexOf(menu_links[j].href) > -1) {
active = 3;
active = 3;
}
}
-
} else if (window.location.href.indexOf(children[j].href, window.location.href.length - children[j].href.length) >-1) {
+
} else if ($(".home_side_menu_item").length> 0 ) {
active = 3;
active = 3;
}
}

Revision as of 03:18, 4 October 2013