When I open a new window (even), every odd window stops working, and test ": visible" begins to be duplicated on the number of open windows ([1 -> 1], [2-> 2] etc).
Code:
$('.back_sc_grad').on('click', function(){
cn = $(this).attr('d-cat');
console.log(cn);
if( $('.container div#cat'+cn).is(':visible'))
{
$('.container div#cat'+cn).css('display','none');
$('#shortcuts .shortcut.open').removeClass('open').addClass('run');
activew = cn;
allhide = 1;
}else{
change_window(cn);
reactivate_shortcuts(cn);
activew = cn;
allhide = 0;
}
});
Video of the error: YouTube
Aucun commentaire:
Enregistrer un commentaire