Remove connection lost popup when websocket connection is lost
This commit is contained in:
@@ -325,11 +325,11 @@ define([
|
||||
var onConnectionChange = function (info) {
|
||||
if (state === STATE.DELETED) { return; }
|
||||
stateChange(info.state ? STATE.INITIALIZING : STATE.DISCONNECTED);
|
||||
if (info.state) {
|
||||
/*if (info.state) {
|
||||
UI.findOKButton().click();
|
||||
} else {
|
||||
UI.alert(Messages.common_connectionLost, undefined, true);
|
||||
}
|
||||
}*/
|
||||
};
|
||||
|
||||
var onError = function (err) {
|
||||
|
||||
@@ -1048,6 +1048,13 @@ define([
|
||||
toolbar.reconnecting = function (/*userId*/) {
|
||||
toolbar.connected = false;
|
||||
if (toolbar.spinner) {
|
||||
var state = -1;
|
||||
var interval = window.setInterval(function () {
|
||||
if (toolbar.connected) { clearInterval(interval); }
|
||||
var dots = Array(state+1).join('.');
|
||||
toolbar.spinner.text(Messages.reconnecting + dots);
|
||||
if (++state > 3) { state = 0; }
|
||||
}, 500);
|
||||
toolbar.spinner.text(Messages.reconnecting);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user