summaryrefslogtreecommitdiff
path: root/src/static/js/pad_modals.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/pad_modals.js')
-rw-r--r--src/static/js/pad_modals.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/static/js/pad_modals.js b/src/static/js/pad_modals.js
index 67b03662..2fc621dc 100644
--- a/src/static/js/pad_modals.js
+++ b/src/static/js/pad_modals.js
@@ -1,5 +1,5 @@
/**
- * This code is mostly from the old Etherpad. Please help us to comment this code.
+ * This code is mostly from the old Etherpad. Please help us to comment this code.
* This helps other people to understand this code better and helps them to improve it.
* TL;DR COMMENTS ON THIS FILE ARE HIGHLY APPRECIATED
*/
@@ -19,8 +19,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
+
var padeditbar = require('./pad_editbar').padeditbar;
+var automaticReconnect = require('./pad_automatic_reconnect');
var padmodals = (function()
{
@@ -35,6 +36,10 @@ var padmodals = (function()
padeditbar.toggleDropDown("none", function() {
$("#connectivity .visible").removeClass('visible');
$("#connectivity ."+messageId).addClass('visible');
+
+ var $modal = $('#connectivity .' + messageId);
+ automaticReconnect.showCountDownTimerToReconnectOnModal($modal, pad);
+
padeditbar.toggleDropDown("connectivity");
});
},