From e08e8ee633fab138c18636d787b3515011acf160 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Fri, 8 Aug 2014 07:35:13 -0400 Subject: Change event handling for confirmation dialog See #567 Before, when content was loaded dynamically, the confirmation was not poping. Now, the confirmation pops by changing event handling. --- p/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p/scripts') diff --git a/p/scripts/main.js b/p/scripts/main.js index a82450e7f..a1628df85 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -973,7 +973,7 @@ function init_persona() { // function init_confirm_action() { - $('.confirm').click(function () { + $('body').on('click', '.confirm', function () { return confirm(str_confirmation); }); } -- cgit v1.2.3