|
@@ -1030,7 +1030,16 @@
|
|
function handleManualCheckReconnect(button){
|
|
function handleManualCheckReconnect(button){
|
|
$(button).addClass("loading");
|
|
$(button).addClass("loading");
|
|
checkConnection(undefined, function(status){
|
|
checkConnection(undefined, function(status){
|
|
|
|
+ let oldText = $(button).text();
|
|
$(button).removeClass("loading");
|
|
$(button).removeClass("loading");
|
|
|
|
+ if (status == false){
|
|
|
|
+ //Still unable to connect. Show cross icon
|
|
|
|
+ $(button).html(`<i class="remove icon"></i>`);
|
|
|
|
+ setTimeout(function(){
|
|
|
|
+ //Restore its original text after 5 sec
|
|
|
|
+ $(button).text(oldText);
|
|
|
|
+ }, 5000);
|
|
|
|
+ }
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|