remove disconnected dialogs
This commit is contained in:
@@ -473,27 +473,19 @@ WriteLiteral(@"',
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\' };\r\n $.connection.hub.error(function (error) {\r\n cons" +
|
||||
"ole.log(\'Server connection error: \' + error);\r\n });\r\n $.co" +
|
||||
"nnection.hub.disconnected(function () {\r\n // Show Dialog Message\r" +
|
||||
"\n if ($(\'.disconnected-dialog\').length == 0) {\r\n " +
|
||||
" $(\'<div>\')\r\n .addClass(\'dialog disconnected-dialog\')\r\n" +
|
||||
" .html(\'<h3><span class=\"fa-stack fa-lg\"><i class=\"fa fa-" +
|
||||
"wifi fa-stack-1x\"></i><i class=\"fa fa-ban fa-stack-2x error\"></i></span>Disconne" +
|
||||
"cted from the Disco ICT Server</h3><div>This page is not receiving live updates." +
|
||||
" Please ensure you are connected to the server, then refresh this page to enable" +
|
||||
" features.</div>\')\r\n .dialog({\r\n " +
|
||||
" resizable: false,\r\n title: \'Disconnected\',\r\n " +
|
||||
" width: 400,\r\n modal: true,\r\n " +
|
||||
" buttons: {\r\n \'Refresh No" +
|
||||
"w\': function () {\r\n $(this).dialog(\'option\', " +
|
||||
"\'buttons\', null);\r\n window.location.reload(tr" +
|
||||
"ue);\r\n },\r\n \'Close" +
|
||||
"\': function () {\r\n $(this).dialog(\'destroy\');" +
|
||||
"\r\n }\r\n }\r\n " +
|
||||
" });\r\n }\r\n });\r\n\r\n $.connection." +
|
||||
"hub.start()\r\n .done(function () { isLive = true; });\r\n\r\n }" +
|
||||
"\r\n init();\r\n });\r\n</script>\r\n");
|
||||
WriteLiteral(@"' };
|
||||
$.connection.hub.error(function (error) {
|
||||
console.log('Server connection error: ' + error);
|
||||
});
|
||||
|
||||
$.connection.hub.start()
|
||||
.done(function () { isLive = true; });
|
||||
|
||||
}
|
||||
init();
|
||||
});
|
||||
</script>
|
||||
");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user