diff --git a/web/src/main/resources/static/js/app.js b/web/src/main/resources/static/js/app.js index ba9ccd7..023aa44 100644 --- a/web/src/main/resources/static/js/app.js +++ b/web/src/main/resources/static/js/app.js @@ -130,7 +130,7 @@ window.showConfirm = function (opts) { opts = opts || {}; var d = document.getElementById('modal-confirm'); - if (!d) return Promise.resolve(window.confirm(opts.text || '')); + if (!d) return Promise.resolve(true); return new Promise(function (resolve) { document.getElementById('confirm-title').textContent = opts.title || 'Подтверждение'; document.getElementById('confirm-text').textContent = opts.text || '';