FSN#37724 Busy loading overlay na 250ms, de spinner na 2000ms
svn path=/Website/trunk/; revision=31832
This commit is contained in:
@@ -943,19 +943,22 @@ var FcltMgr =
|
||||
// zodat we (veel) later een spinner krijgen als het frame
|
||||
// wordt vervangen
|
||||
$(elm_iframe.contentWindow).on("beforeunload", function () {
|
||||
elm_iframe.contentWindow.setTimeout(function () {
|
||||
var $body = $("body", elm_iframe.contentDocument);
|
||||
if (!elm_iframe.contentDocument.location.href.match(/empty\.asp|empty\.html/ig))
|
||||
{
|
||||
var wrapper = $("<div class='busyoverlay'></div>");
|
||||
$body.contents().wrap(wrapper);
|
||||
}
|
||||
}, 500);
|
||||
elm_iframe.contentWindow.setTimeout(function () {
|
||||
var $body = $("body", elm_iframe.contentDocument);
|
||||
if (!$body.find("div.busyloading").length)
|
||||
{
|
||||
if (!elm_iframe.contentDocument.location.href.match(/empty\.asp|empty\.html/ig))
|
||||
{
|
||||
var wrapper = $("<div class='busyoverlay'></div>");
|
||||
$body.contents().wrap(wrapper);
|
||||
}
|
||||
var w = $(window).width();
|
||||
$body.prepend("<div style='left:"+(w/2)+"px' class='busyloading'><i class='fa fa-spinner fa-pulse fa-4x fa-fw'></i></div>");
|
||||
}
|
||||
}, 100);
|
||||
}, 2000);
|
||||
});
|
||||
|
||||
// Als resultlist te breed is moet er wel een scrollbar onderin komen.
|
||||
|
||||
Reference in New Issue
Block a user