...
|
...
|
@@ -67,7 +67,7 @@ exports.showDialog = function(data, callback, callbackForLeft, fullWithBtn) { |
|
|
|
|
|
// 延迟绑定事件,防止触发touch弹出dialog之后直接触发这个click
|
|
|
setTimeout(() => {
|
|
|
$dialogWrapper.on('click', function(event) {
|
|
|
$dialogWrapper.on('touchend', function(event) {
|
|
|
if ($(event.target).hasClass('dialog-left-btn')) {
|
|
|
if (typeof callbackForLeft === 'function') {
|
|
|
callbackForLeft();
|
...
|
...
|
@@ -87,7 +87,7 @@ exports.showDialog = function(data, callback, callbackForLeft, fullWithBtn) { |
|
|
event.preventDefault();
|
|
|
event.stopPropagation();
|
|
|
});
|
|
|
}, 100);
|
|
|
}, 500);
|
|
|
};
|
|
|
|
|
|
exports.hideDialog = function() {
|
...
|
...
|
|