Skip to content
This repository was archived by the owner on Apr 16, 2019. It is now read-only.

Commit 7e13adc

Browse files
committed
added $.afui.showMask() timeout parameter
1 parent 12fff3f commit 7e13adc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/af.ui.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,9 +617,9 @@
617617
* @param {string=} text
618618
* @title $.afui.showMask(text);
619619
*/
620-
showMask: function(text, timeout) {
620+
showMask: function(text, value) {
621621
if (!text) text = this.loadingText || "";
622-
if (!timeout || typeof timeout !== "number") timeout = 15000;
622+
if (!value || typeof value !== "number") timeout = 15000;
623623
$.query("#afui_mask>h1").html(text);
624624
$.query("#afui_mask").show();
625625
this.showingMask = true;
@@ -630,7 +630,7 @@
630630
if(self.showingMask) {
631631
self.hideMask();
632632
}
633-
}, timeout);
633+
}, value);
634634
},
635635
/**
636636
* Hide the loading mask

0 commit comments

Comments
 (0)