No need to specify '#modal', it already applies on box which is

This commit is contained in:
Alexandre Aubin 2019-10-24 14:55:22 +02:00
parent 5c043919e1
commit 9b1659830b

View file

@ -326,10 +326,10 @@
// Clear any remaining click event that could still be there (e.g. // Clear any remaining click event that could still be there (e.g.
// clicking outside the modal window doesn't equal to clicking // clicking outside the modal window doesn't equal to clicking
// cancel... // cancel...
$('#modal footer button').unbind( "click" ); $('footer button', box).unbind( "click" );
// Handle buttons // Handle buttons
$('#modal footer button', box) $('footer button', box)
.click(function(e){ .click(function(e){
e.preventDefault(); e.preventDefault();