app.js: drop native confirm fallback
This commit is contained in:
@@ -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 || '';
|
||||
|
||||
Reference in New Issue
Block a user