Explorar el Código

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 hace 11 años
padre
commit
e08e8ee633
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 	});
 }