mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
[feature] Only automatically reconnect if can establish connection to server
Avoid trying to reload pad when network is not available.
This commit is contained in:
parent
0eae83f252
commit
384697f653
3 changed files with 60 additions and 19 deletions
|
@ -37,7 +37,8 @@ var padmodals = (function()
|
|||
$("#connectivity .visible").removeClass('visible');
|
||||
$("#connectivity ."+messageId).addClass('visible');
|
||||
|
||||
automaticReconnect.showCountDownTimerToReconnectOnModal($('#connectivity .' + messageId));
|
||||
var $modal = $('#connectivity .' + messageId);
|
||||
automaticReconnect.showCountDownTimerToReconnectOnModal($modal, pad);
|
||||
|
||||
padeditbar.toggleDropDown("connectivity");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue