...
|
...
|
@@ -37,6 +37,7 @@ exports.showDialog = function(data, callback) { |
|
|
|
|
|
var dialogStr = dialogTemplate(data),
|
|
|
$dialogBox,
|
|
|
defaultHideDuraton,
|
|
|
dialogWrapperHammer;
|
|
|
|
|
|
$('.dialog-wrapper').remove();
|
...
|
...
|
@@ -63,9 +64,13 @@ exports.showDialog = function(data, callback) { |
|
|
|
|
|
//隐藏
|
|
|
if (data.autoHide) {
|
|
|
defaultHideDuraton = 1000;
|
|
|
if (data.autoHide > 1) {
|
|
|
defaultHideDuraton = data.autoHide;
|
|
|
}
|
|
|
setTimeout(function() {
|
|
|
$dialogWrapper.fadeOut();
|
|
|
}, 1000);
|
|
|
}, defaultHideDuraton);
|
|
|
}
|
|
|
|
|
|
dialogWrapperHammer.on('tap', function(event) {
|
...
|
...
|
@@ -76,9 +81,6 @@ exports.showDialog = function(data, callback) { |
|
|
callback();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
exports.hideDialog = function() {
|
|
|
$dialogWrapper.fadeOut();
|
|
|
}; |
...
|
...
|
|