|
|
@ -194,10 +194,11 @@ define([
|
|
|
|
};
|
|
|
|
};
|
|
|
|
UI.removeLoadingScreen = function (cb) {
|
|
|
|
UI.removeLoadingScreen = function (cb) {
|
|
|
|
$('#' + LOADING).fadeOut(750, cb);
|
|
|
|
$('#' + LOADING).fadeOut(750, cb);
|
|
|
|
$('#loadingTip').css('top', '');
|
|
|
|
$('#loadingTip').css('top', '')
|
|
|
|
window.setTimeout(function () {
|
|
|
|
// loading.less sets transition-delay: $wait-time
|
|
|
|
$('#loadingTip').fadeOut(750);
|
|
|
|
// and transition: opacity $fadeout-time
|
|
|
|
}, 3000);
|
|
|
|
.css('opacity', 0);
|
|
|
|
|
|
|
|
// jquery.fadeout can get stuck
|
|
|
|
};
|
|
|
|
};
|
|
|
|
UI.errorLoadingScreen = function (error, transparent) {
|
|
|
|
UI.errorLoadingScreen = function (error, transparent) {
|
|
|
|
if (!$('#' + LOADING).is(':visible')) { UI.addLoadingScreen(undefined, true); }
|
|
|
|
if (!$('#' + LOADING).is(':visible')) { UI.addLoadingScreen(undefined, true); }
|
|
|
|