summaryrefslogtreecommitdiff
path: root/src/static/js/pad_connectionstatus.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/pad_connectionstatus.js')
-rw-r--r--src/static/js/pad_connectionstatus.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/static/js/pad_connectionstatus.js b/src/static/js/pad_connectionstatus.js
index 2d9354ab..76eedbc4 100644
--- a/src/static/js/pad_connectionstatus.js
+++ b/src/static/js/pad_connectionstatus.js
@@ -21,7 +21,6 @@
*/
var padmodals = require('./pad_modals').padmodals;
-var padeditbar = require('./pad_editbar').padeditbar;
var padconnectionstatus = (function()
{
@@ -65,18 +64,17 @@ var padconnectionstatus = (function()
why: msg
};
- var k = String(msg).toLowerCase(); // known reason why
- if (!(k == 'userdup' || k == 'deleted' || k == 'looping' || k == 'slowcommit' || k == 'initsocketfail' || k == 'unauth'))
+ var k = String(msg); // known reason why
+ if (!(k == 'userdup' || k == 'deleted' || k == 'looping' || k == 'slowcommit' || k == 'initsocketfail' || k == 'unauth' || k == 'badChangeset' || k == 'corruptPad'))
{
k = 'disconnected';
}
-
+
padmodals.showModal(k);
padmodals.showOverlay();
},
isFullyConnected: function()
{
- padmodals.hideOverlay();
return status.what == 'connected';
},
getStatus: function()