소스 검색

confirm exit did not work correctly for multiple forms on one page because the serialized data are generated over an collection and not over the single forms

oskar 11 년 전
부모
커밋
ee5b09d9b6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Resources/public/Admin.js

+ 1 - 1
Resources/public/Admin.js

@@ -12,7 +12,7 @@
 jQuery(document).ready(function() {
     jQuery('html').removeClass('no-js');
     if (window.SONATA_CONFIG && window.SONATA_CONFIG.CONFIRM_EXIT) {
-        jQuery('.sonata-ba-form form').confirmExit();
+        jQuery('.sonata-ba-form form').each( function () { $(this).confirmExit(); } );
     }
 
     Admin.setup_per_page_switcher(document);