فهرست منبع

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 سال پیش
والد
کامیت
e08e8ee633
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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);
 	});
 }