|
|
@ -50,7 +50,7 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var onPopoverHidden = function () { |
|
|
|
var onPopoverHidden = function () { |
|
|
|
document.body.removeChild(backdrop); |
|
|
|
popover.parentNode.removeChild(backdrop); |
|
|
|
popover.style.display = 'none'; |
|
|
|
popover.style.display = 'none'; |
|
|
|
popover.removeEventListener('webkitTransitionEnd', onPopoverHidden); |
|
|
|
popover.removeEventListener('webkitTransitionEnd', onPopoverHidden); |
|
|
|
} |
|
|
|
} |
|
|
@ -80,7 +80,7 @@ |
|
|
|
return popover; |
|
|
|
return popover; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener('touchend', function (e) { |
|
|
|
var showHidePopover = function (e) { |
|
|
|
var popover = getPopover(e); |
|
|
|
var popover = getPopover(e); |
|
|
|
|
|
|
|
|
|
|
|
if (!popover) return; |
|
|
|
if (!popover) return; |
|
|
@ -90,9 +90,10 @@ |
|
|
|
popover.classList.add('visible'); |
|
|
|
popover.classList.add('visible'); |
|
|
|
|
|
|
|
|
|
|
|
popover.parentNode.appendChild(backdrop); |
|
|
|
popover.parentNode.appendChild(backdrop); |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener('click', function (e) { if (getPopover(e)) e.preventDefault(); }); |
|
|
|
window.addEventListener('touchend', showHidePopover); |
|
|
|
|
|
|
|
window.addEventListener('click', showHidePopover); |
|
|
|
|
|
|
|
|
|
|
|
}(); |
|
|
|
}(); |
|
|
|
|
|
|
|
|
|
|
@ -769,4 +770,4 @@ |
|
|
|
toggle = false; |
|
|
|
toggle = false; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}(); |
|
|
|
}(); |
|
|
|