diff --git a/core/js/dist/login.js b/core/js/dist/login.js index 20ffda784a3a0963c3aaba3587c50b5e2e690f0c..4372f184446366f8e620f772a9daf4d3b1bf76f0 100644 Binary files a/core/js/dist/login.js and b/core/js/dist/login.js differ diff --git a/core/js/dist/login.js.map b/core/js/dist/login.js.map index d34938cd280c31b91ed9fec8c8591d2d2de401e2..cc367509823cf41c69304ee92825ac982a5c231a 100644 Binary files a/core/js/dist/login.js.map and b/core/js/dist/login.js.map differ diff --git a/core/js/dist/main.js b/core/js/dist/main.js index 5a7525b2390fdba4e1562d8721c5f19c0c4df5d8..63e4d42c9e139bf54427acb12c31fa8ab5498392 100644 Binary files a/core/js/dist/main.js and b/core/js/dist/main.js differ diff --git a/core/js/dist/main.js.map b/core/js/dist/main.js.map index 53bcc7e9240b90780b77c01984da59126a0dab65..29772f071198ea8fef0283712bbcd7ef42f011b5 100644 Binary files a/core/js/dist/main.js.map and b/core/js/dist/main.js.map differ diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index 2c8ecc54e322db54feff7372ec4aba953eb4f8a2..9f2a24a4debe1dc616529a64efb1b9e449e83e0d 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -625,6 +625,7 @@ const Dialogs = { $(dialogId).ocdialog({ closeOnEscape: true, + closeCallback: () => { callback && callback(false) }, modal: modal, buttons: buttonlist }) diff --git a/core/src/jquery/ocdialog.js b/core/src/jquery/ocdialog.js index 8c4a7602a78cfca4da140a8cc4c7111792c383a3..0fcc33c90a00b831ced707b101a8cb53fac99e26 100644 --- a/core/src/jquery/ocdialog.js +++ b/core/src/jquery/ocdialog.js @@ -27,6 +27,7 @@ $.widget('oc.ocdialog', { height: 'auto', closeButton: true, closeOnEscape: true, + closeCallback: null, modal: false, }, _create: function() { @@ -169,6 +170,7 @@ $.widget('oc.ocdialog', { const $closeButton = $('<a class="oc-dialog-close"></a>') this.$dialog.prepend($closeButton) $closeButton.on('click', function() { + self.options.closeCallback && self.options.closeCallback() self.close() }) } else {