Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Noty closeall is not working as expected #198

Closed
manankapoor88 opened this Issue · 1 comment

2 participants

manankapoor88 Nedim Arabacı
manankapoor88

Hi,

I am Noty jquery in my project.

scenario - I am having 5 to 6 buttons on page , when i click on button single notification is displayed. Also i have another button which will show all the notification (total of single notification). Before showing any new notification i have to close the previous one. I have gone through issue #78 and implemented the same. Now my requirement is working but sometimes it is still giving issue. on click of button(total of single notification), I is not appending in correct fashion sometimes. What needs to be done in this scenario.

Please see below code.




<!-- noty -->


$(document).ready(function () {

$("#al").click(function(){  
    for(var i=0;i<5;i++){
    $.noty.closeAll();
    n = noty({
        text: 'mananan1111111',
        type: 'error',
        dismissQueue: true,
        layout: 'topCenter',
        theme: 'default'
    });
    }
    $.noty.clearQueue();
});


$("#al1").click(function(){
$.noty.closeAll();
    n = noty({
       text: 'maannan222222222',
       type: 'error',
       dismissQueue: true,
       layout: 'topCenter',
       theme: 'default'
    });
    $.noty.clearQueue();
});

});




Nedim Arabacı
Owner

Can you try again with v2.2.8

Nedim Arabacı needim closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.