/* * Add "nav_active" class to a filter menu */ // Store the found filters here //var nav_items = { }; // Loop through the nav container's link links and find a filter //$(".link_link").each(function() { // If this link contains the word "filter" //if($("a", this).attr("href").indexOf("filter") >= 0) { // Remove the filter and grab the actual filter //var url_parts = $("a", this).attr("href").split("filter/"); // Add the filter // nav_items[url_parts[1]] = $(this); //} //}); // Apply the active class to the filtered link //$(nav_items[Cargo.Location.GetUserFilter()]).addClass("link_active"); /* * End filtered menu nav highlight */