diff --git a/addons/web/static/src/legacy/js/core/dialog.js b/addons/web/static/src/legacy/js/core/dialog.js index e6cf6df2b17..3832197742e 100644 --- a/addons/web/static/src/legacy/js/core/dialog.js +++ b/addons/web/static/src/legacy/js/core/dialog.js @@ -459,62 +459,4 @@ Dialog.confirm = function (owner, message, options) { }, options)).open({shouldFocusButtons:true}); }; -/** - * Static method to open double confirmation dialog. - * - * @param {Widget} owner - * @param {string} message - * @param {Object} [options] @see Dialog.init @see Dialog.confirm - * @param {string} [options.securityLevel="warning"] - bootstrap color - * @param {string} [options.securityMessage="I am sure about this"] - * @returns {Dialog} (open() is automatically called) - */ -Dialog.safeConfirm = function (owner, message, options) { - var $checkbox = dom.renderCheckbox({ - text: options && options.securityMessage || _t("I am sure about this."), - }).addClass('mb0'); - var $securityCheck = $('
', { - class: 'alert alert-' + (options && options.securityLevel || 'warning') + ' mt8 mb0', - }).prepend($checkbox); - var $content; - if (options && options.$content) { - $content = options.$content; - delete options.$content; - } else { - $content = $('