You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this selector ( onmousedown ontouchend ) , some time the pop up show twice on mobile and some time on pc
using jquery-confirm v3.2.0
I want to update to jquery-confirm v3.2.3 but i am not sure if that will break anything , so i want to be sure
1- how prevent duplication of the pop up
2- is it a bug
3- can i upgrade safely
I load content into a table via Ajax (jQuery Datatables) due to paging and need to add a confirmation dialog to the [Delete] button for each row. The problem I had was that confim() did attach multiple click events (and triggered multiple confirm dialog when hitting a button). This is due to elements in the table do stick around for each page.
It could be solved by adding a option like attachOnlyOnce: true maybe. :)
as @snap608 pointed out, its because multiple events are attached, this is to be fixed.
Yes, its a bug
Yes, look for the changes that were made between the versions.
If the changes are breaking older versions i will surely point it out in the release notes.
Activity
craftpip commentedon Jul 9, 2017
Please post your code for clear understanding,
snap608 commentedon Jul 25, 2017
I had kind of the same problem. :) I solved it in a bit hacky way:
I load content into a table via Ajax (jQuery Datatables) due to paging and need to add a confirmation dialog to the [Delete] button for each row. The problem I had was that confim() did attach multiple click events (and triggered multiple confirm dialog when hitting a button). This is due to elements in the table do stick around for each page.
It could be solved by adding a option like
attachOnlyOnce: truemaybe. :)instagramlover commentedon Jul 25, 2017
i dont like this way , the author of the lib has to provide a fix for this with big Thanks for hem for sure !
craftpip commentedon Jul 31, 2017
Thanks for pointing the issue @snap608 , i should be checking if the events are already binded. Will fix asap.
@instagramlover
If the changes are breaking older versions i will surely point it out in the release notes.
#290 prevent multiple attachments
historylife commentedon Sep 5, 2017
Dear @craftpip , please can you explain this :
the problem still available !