\')\r\n .addClass(" +
+"\'dialog disconnected-dialog\')\r\n .html(\'
Disconnected from the Disco ICT Server
This page" +
+" is not receiving live updates. Please ensure you are connected to the server, t" +
+"hen refresh this page to enable features.
\')\r\n .dial" +
+"og({\r\n resizable: false,\r\n " +
+" title: \'Disconnected\',\r\n width: 400,\r\n " +
+" modal: true,\r\n buttons: {\r\n " +
+" \'Refresh Now\': function () {\r\n " +
+" $(this).dialog(\'option\', \'buttons\', null);\r\n " +
+" window.location.reload(true);\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 init();\r\n });\r\n\r\n");
}
}
diff --git a/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.cshtml b/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.cshtml
index e73990bf..4341d7cb 100644
--- a/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.cshtml
+++ b/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.cshtml
@@ -286,7 +286,7 @@
dialog.dialog("option", "buttons", null);
// Refresh Page
- window.location.href = window.location.href;
+ window.location.reload(true);
}
function saveChanges() {
diff --git a/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.generated.cs b/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.generated.cs
index 993f991f..d3d17614 100644
--- a/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.generated.cs
+++ b/Disco.Web/Areas/Config/Views/DocumentTemplate/Show.generated.cs
@@ -1012,21 +1012,21 @@ WriteLiteral(" \r\n");
+"\n window.location.reload(true);\r\n" +
+" }\r\n\r\n " +
+" function saveChanges() {\r\n " +
+" var form = dialog.find(\'form\');\r\n\r\n " +
+" $(\'input.jobType:unchecked\').each(function () {\r\n " +
+" $(\'#SubTypes_\' + $(this).val()).find(\'input\').pro" +
+"p(\'checked\', false);\r\n });\r\n\r\n " +
+" form.submit();\r\n\r\n " +
+" dialog.dialog(\"disable\");\r\n " +
+" dialog.dialog(\"option\", \"buttons\", null);\r\n " +
+" }\r\n\r\n " +
+" $(function () {\r\n $(\'#Config_Do" +
+"cumentTemplates_JobSubTypes_Update\').click(showDialog);\r\n " +
+" });\r\n\r\n })();\r\n " +
+" \r\n");
#line 311 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
@@ -1959,16 +1959,16 @@ WriteLiteral(" id=\"dialogBulkGenerate\"");
WriteLiteral(" class=\"hiddenDialog\"");
-WriteAttribute("title", Tuple.Create(" title=\"", 38168), Tuple.Create("\"", 38219)
-, Tuple.Create(Tuple.Create("", 38176), Tuple.Create("Bulk", 38176), true)
-, Tuple.Create(Tuple.Create(" ", 38180), Tuple.Create("Generate:", 38181), true)
+WriteAttribute("title", Tuple.Create(" title=\"", 38153), Tuple.Create("\"", 38204)
+, Tuple.Create(Tuple.Create("", 38161), Tuple.Create("Bulk", 38161), true)
+, Tuple.Create(Tuple.Create(" ", 38165), Tuple.Create("Generate:", 38166), true)
#line 683 "..\..\Areas\Config\Views\DocumentTemplate\Show.cshtml"
-, Tuple.Create(Tuple.Create(" ", 38190), Tuple.Create
(Model.DocumentTemplate.Id
+, Tuple.Create(Tuple.Create(" ", 38175), Tuple.Create(Model.DocumentTemplate.Id
#line default
#line hidden
-, 38191), false)
+, 38176), false)
);
WriteLiteral(">\r\n
-
- No enrolment sessions today
+ No enrolment sessions today
-
-
+
+
-
-
+
+
-
-
-
-
-
-
+
+
+
-