diff --git a/core/misc/dialog.ajax.js b/core/misc/dialog.ajax.js index 8bb659928d0ab2d99aa6f2bac4019af4919cfe12..c56515b6cf42a53092f0847be715eec65c4b5a1c 100644 --- a/core/misc/dialog.ajax.js +++ b/core/misc/dialog.ajax.js @@ -33,9 +33,6 @@ } } }, - detach: function (context, settings) { - $(context).find('form').off('submit.dialogSubmit'); - }, /** * Scan a dialog for any primary buttons and move them to the button area. @@ -69,12 +66,6 @@ } }); }); - if ($buttons.length) { - $dialog.find('form').on('submit.dialogSubmit', function (e) { - $buttons.first().trigger('click'); - e.preventDefault(); - }); - } return buttons; } };