1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

issue #2931: possible fix for the js issue (exception on nav)

This commit is contained in:
Achim Ennenbach 2019-02-01 21:17:54 +01:00
parent dbbfe17e9f
commit cc8356781f

View File

@ -613,7 +613,9 @@ $(document).ready(function()
$(".plugin-navigation a").click(function () {
$(".plugin-navigation a").each(function(index) {
var ot = $(this).attr("href");
$(ot).hide().removeClass('e-hideme');
if (ot.split('#')[1]) {
$(ot).hide().removeClass('e-hideme');
}
$(this).closest("li").removeClass("active");
$(this).switchClass( "link-active", "link", 0 );
});
@ -622,11 +624,11 @@ $(document).ready(function()
$(this).switchClass( "link", "link-active", 30 );
$(this).closest("li").addClass("active");
$(id).removeClass('e-hideme').show({
effect: "slide"
});
// 'remember' the active navigation pane
if(hash) {
$(id).removeClass('e-hideme').show({
effect: "slide"
});
window.location.hash = 'nav-' + hash;
if(form) {