1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-20 14:31:31 +02:00

Merge pull request #3658 from SimSync/fix_2931

issue #2931: possible fix for the js issue (exception on nav)
This commit is contained in:
Cameron
2019-02-03 11:22:14 -08:00
committed by GitHub

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");
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");
// 'remember' the active navigation pane
if(hash) {
$(id).removeClass('e-hideme').show({
effect: "slide"
});
// 'remember' the active navigation pane
if(hash) {
window.location.hash = 'nav-' + hash;
if(form) {