Permalink
Browse files

added $.afui.showMask() timeout parameter

  • Loading branch information...
holmberd committed Mar 27, 2016
1 parent 12fff3f commit 7e13adc9b18fa5a560cb4b0a4f8224a576fe9c57
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/af.ui.js
View
@@ -617,9 +617,9 @@
* @param {string=} text
* @title $.afui.showMask(text);
*/
showMask: function(text, timeout) {
showMask: function(text, value) {
if (!text) text = this.loadingText || "";
if (!timeout || typeof timeout !== "number") timeout = 15000;
if (!value || typeof value !== "number") timeout = 15000;
$.query("#afui_mask>h1").html(text);
$.query("#afui_mask").show();
this.showingMask = true;
@@ -630,7 +630,7 @@
if(self.showingMask) {
self.hideMask();
}
}, timeout);
}, value);
},
/**
* Hide the loading mask

0 comments on commit 7e13adc

Please sign in to comment.