fix stuck loading tip

This commit is contained in:
ansuz
2017-06-02 12:13:11 +02:00
parent 8f7aaecc1c
commit 767793b5ca
3 changed files with 10 additions and 4 deletions

View File

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