Fix the infinite spinner problem

This commit is contained in:
yflory
2016-12-08 16:01:46 +01:00
parent 4cd9bd5534
commit 05fd6c1563
5 changed files with 19 additions and 3 deletions

View File

@@ -550,6 +550,7 @@ define([
$(function() {
// Race condition : if document.body is undefined when alertify.js is loaded, Alertify
// won't work. We have to reset it now to make sure it uses a correct "body"
Alertify.reset();
if($('#pad-iframe').length) {
var $iframe = $('#pad-iframe');
@@ -839,6 +840,7 @@ define([
var styleAlerts = common.styleAlerts = function (href) {
var $link = $('link[href="/customize/alertify.css"]');
if ($link.length) {
return;
$link.attr('href', '');
$link.attr('href', '/customize/alertify.css');
return;

View File

@@ -313,12 +313,11 @@ define([
}
}
else if (!firstConnection) {
lagErrors++;
// Display the red light at the 2nd failed attemp to get the lag
if (lagErrors > 1) {
//if (lagErrors > 1) {
lagLight.addClass('lag-red');
title = Messages.redLight;
}
//}
}
if (title) {
lagLight.attr('title', title);