Explorar o código

Merge pull request #2112 from UFOMelkor/hotfix/js-confirm-exit-for-multiple-forms

confirm exit does not work correctly for multiple forms
Thomas %!s(int64=11) %!d(string=hai) anos
pai
achega
d3e032a6df
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);