You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.
The first:
` showMask: function(text, value) {
if (!text) text = this.loadingText || "";
if (!value || typeof value !== "number") timeout = 15000; ?????this global parameter timeout is not defined and used??????
$.query("#afui_mask>h1").html(text);
$.query("#afui_mask").show();
this.showingMask = true;
var self = this;
//set another timeout to auto-hide the mask if something goes wrong, default is 15 sec
setTimeout(function() {
if(self.showingMask) {
self.hideMask();
}
}, value);
}`
The second:
` IE 10 fixes
var href = theTarget.href,
prefix = location.protocol + "//" + location.hostname + ":" + location.port + location.pathname;
if (href.indexOf(prefix) === 0) {
href = href.substring(prefix.length);
}
//empty links
if (href === "#" || (href.indexOf("#") === href.length - 1) || (href.length === 0 && theTarget.hash.length === 0)) return e.preventDefault();
//internal links
//http urls
var urlRegex=/^((http|https|file):\/\/)/;
//only call prevent default on http/fileurls. If it's a protocol handler, do not call prevent default.
//It will fall through to the ajax call and fail
if(theTarget.href.indexOf(":") !== -1 &&urlRegex.test(theTarget.href))
e.preventDefault();
var mytransition = theTarget.getAttribute("data-transition");
if(!mytransition&&$(theTarget).closest("footer").length>0)
mytransition="none";
if(mytransition&&mytransition.indexOf(":dismiss")!==-1){
return $.afui.dismissView(theTarget,mytransition);
}
href = theTarget.hash.length > 0 ? theTarget.hash : href; ??????here href shoude be theTarget.href ??????
$.afui.loadContent(href, false, 0, mytransition, theTarget);
return;`
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The first:
` showMask: function(text, value) {
if (!text) text = this.loadingText || "";
if (!value || typeof value !== "number") timeout = 15000; ?????this global parameter timeout is not defined and used??????
$.query("#afui_mask>h1").html(text);
$.query("#afui_mask").show();
this.showingMask = true;
The second:
` IE 10 fixes
The text was updated successfully, but these errors were encountered: