summaryrefslogtreecommitdiff
path: root/src/static/js/pad_modals.js
diff options
context:
space:
mode:
authorLuiza Pagliari <lpagliari@gmail.com>2017-04-05 15:07:37 -0300
committerLuiza Pagliari <lpagliari@gmail.com>2017-04-05 15:07:37 -0300
commit384697f65396396c821cbd86d3b3be31d385789c (patch)
tree9f43af9d563b2b6289bfcf01b3cad2dc162391b8 /src/static/js/pad_modals.js
parent0eae83f2527e2ef963faee5d35993a66e84e26f4 (diff)
downloadetherpad-lite-384697f65396396c821cbd86d3b3be31d385789c.zip
[feature] Only automatically reconnect if can establish connection to server
Avoid trying to reload pad when network is not available.
Diffstat (limited to 'src/static/js/pad_modals.js')
-rw-r--r--src/static/js/pad_modals.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/static/js/pad_modals.js b/src/static/js/pad_modals.js
index af048875..2fc621dc 100644
--- a/src/static/js/pad_modals.js
+++ b/src/static/js/pad_modals.js
@@ -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");
});