remove disconnected dialogs
This commit is contained in:
@@ -464,38 +464,21 @@ WriteLiteral(" <script>\r\n $(function () {\r\n
|
||||
" error);\r\n });\r\n $.connection.hub.disconnected(fun" +
|
||||
"ction () {\r\n // Disable UI\r\n $(\'#Attachmen" +
|
||||
"tsContainer\').find(\'span.action.enabled\').addClass(\'disabled\');\r\n " +
|
||||
" $(\'#Comments\').find(\'button\').prop(\'disabled\', true);\r\n\r\n " +
|
||||
" // Show Dialog Message\r\n if ($(\'.disconnected-dialog\').leng" +
|
||||
"th == 0) {\r\n $(\'<div>\')\r\n .add" +
|
||||
"Class(\'dialog disconnected-dialog\')\r\n .html(\'<h3><spa" +
|
||||
"n class=\"fa-stack fa-lg\"><i class=\"fa fa-wifi fa-stack-1x\"></i><i class=\"fa fa-b" +
|
||||
"an fa-stack-2x error\"></i></span>Disconnected 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 w" +
|
||||
"idth: 400,\r\n modal: true,\r\n " +
|
||||
" buttons: {\r\n \'Refresh Now\': functio" +
|
||||
"n () {\r\n $(this).dialog(\'option\', \'button" +
|
||||
"s\', null);\r\n window.location.reload(true)" +
|
||||
";\r\n },\r\n \'" +
|
||||
"Close\': function () {\r\n $(this).dialog(\'d" +
|
||||
"estroy\');\r\n }\r\n " +
|
||||
" }\r\n });\r\n }\r\n });" +
|
||||
"\r\n\r\n $.connection.hub.reconnecting(function () {\r\n " +
|
||||
" $(\'#AttachmentsContainer\').find(\'span.action.enabled\').addClass(\'disabled\')" +
|
||||
";\r\n $(\'#Comments\').find(\'button\').prop(\'disabled\', true);\r\n " +
|
||||
" });\r\n $.connection.hub.reconnected(function () {\r\n " +
|
||||
" $(\'#AttachmentsContainer\').find(\'span.action.enabled\').remove" +
|
||||
"Class(\'disabled\');\r\n $(\'#Comments\').find(\'button\').prop(\'disa" +
|
||||
"bled\', false);\r\n });\r\n\r\n // Start Connection\r\n " +
|
||||
" $.connection.hub.start(function () {\r\n $(\'#Attach" +
|
||||
"mentsContainer\').find(\'span.action.enabled\').removeClass(\'disabled\');\r\n " +
|
||||
" $(\'#Comments\').find(\'button\').prop(\'disabled\', false);\r\n " +
|
||||
" });\r\n });\r\n </script>\r\n");
|
||||
" $(\'#Comments\').find(\'button\').prop(\'disabled\', true);\r\n });\r" +
|
||||
"\n\r\n $.connection.hub.reconnecting(function () {\r\n " +
|
||||
" $(\'#AttachmentsContainer\').find(\'span.action.enabled\').addClass(\'disabled\');" +
|
||||
"\r\n $(\'#Comments\').find(\'button\').prop(\'disabled\', true);\r\n " +
|
||||
" });\r\n $.connection.hub.reconnected(function () {\r\n " +
|
||||
" $(\'#AttachmentsContainer\').find(\'span.action.enabled\').removeC" +
|
||||
"lass(\'disabled\');\r\n $(\'#Comments\').find(\'button\').prop(\'disab" +
|
||||
"led\', false);\r\n });\r\n\r\n // Start Connection\r\n " +
|
||||
" $.connection.hub.start(function () {\r\n $(\'#Attachm" +
|
||||
"entsContainer\').find(\'span.action.enabled\').removeClass(\'disabled\');\r\n " +
|
||||
" $(\'#Comments\').find(\'button\').prop(\'disabled\', false);\r\n " +
|
||||
" });\r\n });\r\n </script>\r\n");
|
||||
|
||||
|
||||
#line 190 "..\..\Views\User\Show.cshtml"
|
||||
#line 168 "..\..\Views\User\Show.cshtml"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user