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:
parent
dbbfe17e9f
commit
cc8356781f
@ -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) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user