From 9b1659830b8c960c25f9974b7530a620af44af0e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 24 Oct 2019 14:55:22 +0200 Subject: [PATCH] No need to specify '#modal', it already applies on box which is --- src/js/yunohost/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/yunohost/helpers.js b/src/js/yunohost/helpers.js index aabf1cae..44ea77e6 100644 --- a/src/js/yunohost/helpers.js +++ b/src/js/yunohost/helpers.js @@ -326,10 +326,10 @@ // Clear any remaining click event that could still be there (e.g. // clicking outside the modal window doesn't equal to clicking // cancel... - $('#modal footer button').unbind( "click" ); + $('footer button', box).unbind( "click" ); // Handle buttons - $('#modal footer button', box) + $('footer button', box) .click(function(e){ e.preventDefault();