mirror of
https://github.com/e107inc/e107.git
synced 2025-07-13 02:56:28 +02:00
issue #2931: possible fix for the js issue (exception on nav)
This commit is contained in:
@ -613,7 +613,9 @@ $(document).ready(function()
|
|||||||
$(".plugin-navigation a").click(function () {
|
$(".plugin-navigation a").click(function () {
|
||||||
$(".plugin-navigation a").each(function(index) {
|
$(".plugin-navigation a").each(function(index) {
|
||||||
var ot = $(this).attr("href");
|
var ot = $(this).attr("href");
|
||||||
|
if (ot.split('#')[1]) {
|
||||||
$(ot).hide().removeClass('e-hideme');
|
$(ot).hide().removeClass('e-hideme');
|
||||||
|
}
|
||||||
$(this).closest("li").removeClass("active");
|
$(this).closest("li").removeClass("active");
|
||||||
$(this).switchClass( "link-active", "link", 0 );
|
$(this).switchClass( "link-active", "link", 0 );
|
||||||
});
|
});
|
||||||
@ -622,11 +624,11 @@ $(document).ready(function()
|
|||||||
$(this).switchClass( "link", "link-active", 30 );
|
$(this).switchClass( "link", "link-active", 30 );
|
||||||
$(this).closest("li").addClass("active");
|
$(this).closest("li").addClass("active");
|
||||||
|
|
||||||
|
// 'remember' the active navigation pane
|
||||||
|
if(hash) {
|
||||||
$(id).removeClass('e-hideme').show({
|
$(id).removeClass('e-hideme').show({
|
||||||
effect: "slide"
|
effect: "slide"
|
||||||
});
|
});
|
||||||
// 'remember' the active navigation pane
|
|
||||||
if(hash) {
|
|
||||||
window.location.hash = 'nav-' + hash;
|
window.location.hash = 'nav-' + hash;
|
||||||
if(form) {
|
if(form) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user