Browse Source

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.
Alexis Degrugillier 11 years ago
parent
commit
e08e8ee633
1 changed files with 1 additions and 1 deletions
  1. 1 1
      p/scripts/main.js

+ 1 - 1
p/scripts/main.js

@@ -973,7 +973,7 @@ function init_persona() {
 //</persona>
 
 function init_confirm_action() {
-	$('.confirm').click(function () {
+	$('body').on('click', '.confirm', function () {
 		return confirm(str_confirmation);
 	});
 }