|
|
|
@ -77,7 +77,8 @@ module.exports = (title, content, ok, cancel, focusSelector, opts) => { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function hide () { |
|
|
|
|
if (container) container.style.display = 'none' |
|
|
|
|
if (!container) return |
|
|
|
|
container.style.display = 'none' |
|
|
|
|
if (container.parentElement) container.parentElement.removeChild(container) |
|
|
|
|
container = null |
|
|
|
|
} |
|
|
|
@ -119,7 +120,7 @@ module.exports = (title, content, ok, cancel, focusSelector, opts) => { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
return { container, okListener, cancelListener } |
|
|
|
|
return { container, okListener, cancelListener, hide } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function html (opts) { |
|
|
|
|