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

Commit

Permalink
added $.afui.showMask() timeout param
Browse files Browse the repository at this point in the history
  • Loading branch information
holmberd committed Mar 27, 2016
1 parent 7e13adc commit c13caee
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
11 changes: 6 additions & 5 deletions build/appframework.ui.js
@@ -1,4 +1,4 @@
/*! intel-appframework - v3.0.0 - 2016-03-24 */
/*! intel-appframework - v3.0.0 - 2016-03-26 */

/**
* af.shim.js
Expand Down Expand Up @@ -929,9 +929,9 @@ window.af=window.jq=jQuery;
* @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;
Expand All @@ -942,7 +942,7 @@ window.af=window.jq=jQuery;
if(self.showingMask) {
self.hideMask();
}
}, timeout);
}, value);
},
/**
* Hide the loading mask
Expand Down Expand Up @@ -1316,7 +1316,8 @@ window.af=window.jq=jQuery;
tmpActive.classList.remove("active");

}
$(hide).trigger("panelunload", [back]);
//fix #903
//$(hide).trigger("panelunload", [back]);
}
else{
if(noTrans){
Expand Down

0 comments on commit c13caee

Please sign in to comment.