Lines 181-199
$(document).ready(function () {
Link Here
|
181 |
|
181 |
|
182 |
var sidebar_menu = $(".sidebar_menu"); |
182 |
var sidebar_menu = $(".sidebar_menu"); |
183 |
if (sidebar_menu.length > 0) { |
183 |
if (sidebar_menu.length > 0) { |
184 |
var path = location.pathname.substring(1); |
184 |
sidebar_menu.each(function(){ |
185 |
var url = window.location.toString(); |
185 |
var path = location.pathname.substring(1); |
186 |
var params = ""; |
186 |
var url = window.location.toString(); |
187 |
if (url.match(/\?(.+)$/)) { |
187 |
var params = ""; |
188 |
params = "?" + RegExp.$1; |
188 |
if (url.match(/\?(.+)$/)) { |
189 |
} |
189 |
params = "?" + RegExp.$1; |
190 |
if ($('a[href$="/' + path + params + '"]', sidebar_menu).length == 0) { |
190 |
} |
191 |
$('a[href$="/' + path + '"]', sidebar_menu).addClass("current"); |
191 |
if ($('a[href$="/' + path + params + '"]', $(this) ).length == 0) { |
192 |
} else { |
192 |
$('a[href$="/' + path + '"]', $(this) ).addClass("current"); |
193 |
$('a[href$="/' + path + params + '"]', sidebar_menu).addClass( |
193 |
} else { |
194 |
"current" |
194 |
$('a[href$="/' + path + params + '"]', $(this) ).addClass( |
195 |
); |
195 |
"current" |
196 |
} |
196 |
); |
|
|
197 |
} |
198 |
}); |
197 |
} |
199 |
} |
198 |
|
200 |
|
199 |
$("#catalog-search-link a").on("mouseenter mouseleave", function () { |
201 |
$("#catalog-search-link a").on("mouseenter mouseleave", function () { |