mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-12 05:21:18 +00:00
make confirmPopup() to be able to fetch req object from event.data
This commit is contained in:
parent
07beae2a42
commit
4466c72814
@ -144,9 +144,13 @@ function resumeModal(event) {
|
||||
}
|
||||
|
||||
function confirmPopup(event, req) {
|
||||
if (event && event.stopPropagation)
|
||||
if (event && event.stopPropagation) {
|
||||
event.stopPropagation();
|
||||
|
||||
if (!req && event.data)
|
||||
req = event.data;
|
||||
}
|
||||
|
||||
var modal = openModal({
|
||||
classBase: '.prompt-wrapper',
|
||||
classAdd: 'confirm-popup',
|
||||
|
Loading…
x
Reference in New Issue
Block a user