Enter multiple
Device Serial Numbers separated by
<new line>, commas (
,) or semicolons (
;).
@@ -846,18 +846,24 @@
$form.attr('action', $form.attr('data-overrideaction'));
assignDialog.addClass('loading');
- $.getJSON('@Url.Action(MVC.API.DeviceFlag.AssignedDevices(Model.DeviceFlag.Id))', function (response, result) {
+ const body = new FormData();
+ body.append('__RequestVerificationToken', document.body.dataset.antiforgery);
+ fetch(assignDialog.attr('data-assignedurl'), {
+ method: 'POST',
+ body: body
+ }).then(r => {
assignDialog.removeClass('loading');
-
- if (result != 'success') {
- alert('Unable to load current assignments:\n' + response);
+ if (!r.ok) {
+ alert('Unable to load current assignments:\n' + r.statusText);
assignDialog.dialog('close');
} else {
- if (!!response) {
- assignDeviceSerialNumbers.val(response.join('\n'));
- } else {
- assignDeviceSerialNumbers.val('');
- }
+ r.json().then(j => {
+ if (!j) {
+ assignDeviceSerialNumbers.val('');
+ } else {
+ assignDeviceSerialNumbers.val(j.join('\n'));
+ }
+ })
}
});
}
diff --git a/Disco.Web/Areas/Config/Views/DeviceFlag/Show.generated.cs b/Disco.Web/Areas/Config/Views/DeviceFlag/Show.generated.cs
index c22c1ba0..b0b3e335 100644
--- a/Disco.Web/Areas/Config/Views/DeviceFlag/Show.generated.cs
+++ b/Disco.Web/Areas/Config/Views/DeviceFlag/Show.generated.cs
@@ -2357,6 +2357,17 @@ WriteLiteral(" class=\"dialog\"");
WriteLiteral(" title=\"Bulk Assign Devices\"");
+WriteLiteral(" data-assignedurl=\"");
+
+
+ #line 774 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ Write(Url.Action(MVC.API.DeviceFlag.AssignedDevices(Model.DeviceFlag.Id)));
+
+
+ #line default
+ #line hidden
+WriteLiteral("\"");
+
WriteLiteral(">\r\n
\r\n $(function () {\r\n
"ers.closest(\'form\');\r\n if (mode == \"Override\") {\r\n " +
" $form.attr(\'action\', $form.attr(\'data-overrideaction\'));\r\n\r" +
"\n assignDialog.addClass(\'loading\');\r\n " +
-" $.getJSON(\'");
+" const body = new FormData();\r\n body.appen" +
+"d(\'__RequestVerificationToken\', document.body.dataset.antiforgery);\r\n " +
+" fetch(assignDialog.attr(\'data-assignedurl\'), {\r\n " +
+" method: \'POST\',\r\n body: body\r\n " +
+" }).then(r => {\r\n assign" +
+"Dialog.removeClass(\'loading\');\r\n if (!r.ok) {\r\n " +
+" alert(\'Unable to load current assignments:\\n\' " +
+"+ r.statusText);\r\n assignDialog.dialog(\'close" +
+"\');\r\n } else {\r\n " +
+" r.json().then(j => {\r\n if (!j) {\r\n " +
+" assignDeviceSerialNumbers.val(\'\');\r\n " +
+" } else {\r\n " +
+" assignDeviceSerialNumbers.val(j.join(\'\\n\'));\r\n " +
+" }\r\n })\r\n " +
+" }\r\n });\r\n }\r\n " +
+" else // Assume Add\r\n {\r\n " +
+" $form.attr(\'action\', $form.attr(\'data-addaction\'));\r\n " +
+" }\r\n\r\n assignDialog.dialog(\'open\');\r\n " +
+" }\r\n\r\n $(\'#Config_DeviceFlags_BulkAssign_Button\').cli" +
+"ck(function () {\r\n showModeDialog();\r\n " +
+" return false;\r\n });\r\n });\r\n " +
+"script>\r\n");
- #line 849 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
- Write(Url.Action(MVC.API.DeviceFlag.AssignedDevices(Model.DeviceFlag.Id)));
-
-
- #line default
- #line hidden
-WriteLiteral(@"', function (response, result) {
- assignDialog.removeClass('loading');
-
- if (result != 'success') {
- alert('Unable to load current assignments:\n' + response);
- assignDialog.dialog('close');
- } else {
- if (!!response) {
- assignDeviceSerialNumbers.val(response.join('\n'));
- } else {
- assignDeviceSerialNumbers.val('');
- }
- }
- });
- }
- else // Assume Add
- {
- $form.attr('action', $form.attr('data-addaction'));
- }
-
- assignDialog.dialog('open');
- }
-
- $('#Config_DeviceFlags_BulkAssign_Button').click(function () {
- showModeDialog();
- return false;
- });
- });
-
-");
-
-
- #line 878 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 884 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
}
@@ -2517,7 +2511,7 @@ WriteLiteral(@"', function (response, result) {
WriteLiteral(" ");
- #line 879 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 885 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
if (canDelete)
{
@@ -2545,13 +2539,13 @@ WriteLiteral(" title=\"Delete this Device Flag?\"");
WriteLiteral(">\r\n");
- #line 883 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 889 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
#line default
#line hidden
- #line 883 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 889 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
using (Html.BeginForm(MVC.API.DeviceFlag.Delete(Model.DeviceFlag.Id, true)))
{
@@ -2559,14 +2553,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
- #line 885 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 891 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
Write(Html.AntiForgeryToken());
#line default
#line hidden
- #line 885 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 891 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
}
@@ -2581,13 +2575,13 @@ WriteLiteral(">\r\n This item will be permanently deleted
"covered.
\r\n
\r\n");
- #line 891 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 897 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
#line default
#line hidden
- #line 891 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 897 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
if (Model.CurrentAssignmentCount > 0)
{
@@ -2597,7 +2591,7 @@ WriteLiteral(">\r\n This item will be permanently deleted
WriteLiteral(" ");
- #line 893 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 899 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
Write(Model.CurrentAssignmentCount);
@@ -2606,7 +2600,7 @@ WriteLiteral(" ");
WriteLiteral(" device");
- #line 893 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 899 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
Write(Model.CurrentAssignmentCount != 1 ? "s are" : " is");
@@ -2619,7 +2613,7 @@ WriteLiteral("
\r\n");
WriteLiteral("
\r\n");
- #line 896 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 902 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
}
@@ -2660,7 +2654,7 @@ WriteLiteral(@">
");
- #line 926 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 932 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
}
@@ -2669,7 +2663,7 @@ WriteLiteral(@">
WriteLiteral(" ");
- #line 927 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 933 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
if (canShowDevices)
{
@@ -2677,14 +2671,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 929 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 935 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
Write(Html.ActionLinkButton(string.Format("Show {0} device{1}", Model.CurrentAssignmentCount, (Model.CurrentAssignmentCount == 1 ? null : "s")), MVC.Search.Query(Model.DeviceFlag.Id.ToString(), "DeviceFlag"), "Config_DeviceFlags_Actions_ShowDevices_Button"));
#line default
#line hidden
- #line 929 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 935 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
}
@@ -2694,7 +2688,7 @@ WriteLiteral(" ");
WriteLiteral("
\r\n");
- #line 932 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
+ #line 938 "..\..\Areas\Config\Views\DeviceFlag\Show.cshtml"
}
diff --git a/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml b/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml
index 597b67f7..fc270384 100644
--- a/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml
+++ b/Disco.Web/Areas/Config/Views/DeviceProfile/Show.cshtml
@@ -561,8 +561,8 @@
@Model.FriendlyOrganisationalUnitName
-
Change@AjaxHelpers.AjaxLoader()
-
+
@AjaxHelpers.AjaxLoader()
+
@AjaxHelpers.AjaxLoader() Loading Organisational Units
@@ -580,9 +580,9 @@
\r\n");
- #line 633 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
- Write(Url.Action(MVC.API.System.DomainOrganisationalUnits()));
-
-
- #line default
- #line hidden
-WriteLiteral("\', null, function (data) {\r\n $loading.hide" +
-"();\r\n\r\n // Make \'Domains\' unselectable\r\n " +
-" $.each(data, function (i, node) {\r\n " +
-" node.unselectable = true;\r\n " +
-" });\r\n\r\n ouTree =" +
-" $ouTree.fancytree({\r\n source: data,\r" +
-"\n checkbox: false,\r\n " +
-" selectMode: 1,\r\n " +
-" keyboard: false,\r\n fx: null\r\n " +
-" }).fancytree(\'getTree\');\r\n\r\n " +
-" ouTree.$container.css(\'position\', \'relative\');\r\n\r\n " +
-" // Set Buttons\r\n " +
-" $dialog.dialog(\'option\', \'buttons\', {\r\n " +
-" \'Use Default Computers Container\': function () {\r\n " +
-" var $this = $(this);\r\n " +
-" $this.css(\'overflow\', \'hidden\');\r\n " +
-" $this.dialog(\"disable\");\r\n " +
-" $this.dialog(\"option\", \"buttons\", null);\r\n " +
-" ouSet(\'\');\r\n " +
-" },\r\n \'Save\': function () {\r\n " +
-" var node = ouTree.getActiveNode();\r" +
-"\n if (node && node.key.substr(0, " +
-"3).toLowerCase() == \'ou=\') {\r\n " +
-" var $this = $(this);\r\n $thi" +
-"s.css(\'overflow\', \'hidden\');\r\n " +
-" $this.dialog(\"disable\");\r\n " +
-"$this.dialog(\"option\", \"buttons\", null);\r\n " +
-" ouSet(node.key);\r\n " +
-"} else {\r\n alert(\'Select an O" +
-"rganisational Unit to Save\')\r\n }\r" +
-"\n }\r\n " +
-" });\r\n\r\n // Expand\r\n " +
-" expandAndFocusNode(ouValue);\r\n\r\n " +
-" ouTree.options.fx = { height: \"toggle\", duration: 200 };\r\n " +
-" });\r\n }\r\n " +
-" $dialog.dialog(\'open\');\r\n\r\n " +
-" $enforceCheckbox.prop(\'checked\', $(\'#DeviceProfile_EnforceOrganisationalUnit\'" +
-").prop(\'checked\'));\r\n\r\n if (ouTree) {\r\n " +
-" // Expand\r\n expandA" +
-"ndFocusNode(ouValue);\r\n }\r\n\r\n " +
-" return false;\r\n };\r\n\r\n " +
-" $(\'#changeOrganisationalUnit\').click(ouChange);\r\n " +
-" });\r\n \r\n");
-
-
- #line 695 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 694 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
else
{
@@ -1998,7 +2001,7 @@ WriteLiteral(">\r\n
\r\n");
WriteLiteral(" ");
- #line 700 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 699 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Model.FriendlyOrganisationalUnitName);
@@ -2007,7 +2010,7 @@ WriteLiteral(" ");
WriteLiteral("\r\n \r\n
\r\n");
- #line 703 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 702 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2016,7 +2019,7 @@ WriteLiteral("\r\n \r\n
\
WriteLiteral(" ");
- #line 704 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 703 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (!Model.OrganisationalUnitExists)
{
@@ -2039,7 +2042,7 @@ WriteLiteral(">The Organisational Unit could not be found.\r\n
"
\r\n");
- #line 711 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 710 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2052,13 +2055,13 @@ WriteLiteral(" style=\"margin-top: 8px;\"");
WriteLiteral(">\r\n");
- #line 713 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 712 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 713 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 712 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canConfig)
{
@@ -2074,7 +2077,7 @@ WriteLiteral(" type=\"checkbox\"");
WriteLiteral(" ");
- #line 715 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 714 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Model.DeviceProfile.EnforceOrganisationalUnit ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
@@ -2094,7 +2097,7 @@ WriteLiteral(@">
'");
- #line 721 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 720 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateEnforceOrganisationalUnit(Model.DeviceProfile.Id)));
@@ -2105,7 +2108,7 @@ WriteLiteral("\',\r\n \'EnforceOrganisational
" \r\n");
- #line 726 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 725 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
else
{
@@ -2122,7 +2125,7 @@ WriteLiteral(" type=\"checkbox\"");
WriteLiteral(" ");
- #line 729 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 728 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Model.DeviceProfile.EnforceOrganisationalUnit ? new MvcHtmlString("checked=\"checked\" ") : new MvcHtmlString(string.Empty));
@@ -2131,7 +2134,7 @@ WriteLiteral(" ");
WriteLiteral(" disabled=\"disabled\" />\r\n");
- #line 730 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 729 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2147,7 +2150,7 @@ WriteLiteral(">\r\n Enforce Organisational Unit\r\n
WriteLiteral(" ");
- #line 734 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 733 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -2178,13 +2181,13 @@ WriteLiteral(@">When an Active Directory account is provisioned it will be p
");
- #line 748 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 747 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 748 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 747 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canConfig && (Model.CertificateProviders.Count > 0 || Model.CertificateAuthorityProviders.Count > 0))
{
@@ -2194,20 +2197,20 @@ WriteLiteral(@">When an Active Directory account is provisioned it will be p
WriteLiteral("
\r\n");
- #line 751 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 750 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 751 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 750 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader("DeviceProfile_CertificateProviders"));
#line default
#line hidden
- #line 751 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 750 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2217,7 +2220,7 @@ WriteLiteral("
\r\n");
WriteLiteral(" ");
- #line 753 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 752 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canConfig && Model.CertificateProviders.Count > 0)
{
@@ -2242,7 +2245,7 @@ WriteLiteral(@">
fetch('");
- #line 766 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 765 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateCertificateProviders(Model.DeviceProfile.Id)));
@@ -2268,7 +2271,7 @@ WriteLiteral(@"', {
");
- #line 783 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 782 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2277,7 +2280,7 @@ WriteLiteral(@"', {
WriteLiteral(" ");
- #line 784 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 783 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canConfig && Model.CertificateProviders.Count > 0)
{
@@ -2302,7 +2305,7 @@ WriteLiteral(@">
fetch('");
- #line 797 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 796 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateCertificateAuthorityProviders(Model.DeviceProfile.Id)));
@@ -2328,7 +2331,7 @@ WriteLiteral(@"', {
");
- #line 814 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 813 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2338,13 +2341,13 @@ WriteLiteral(" \r\n
\r\n Devic
"tes\r\n");
- #line 818 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 817 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 818 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 817 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canConfig && Model.CertificateProviders.Count > 0)
{
@@ -2352,14 +2355,14 @@ WriteLiteral(" \r\n | \r\n Devic
#line default
#line hidden
- #line 820 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 819 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(CommonHelpers.CheckBoxList("DeviceProfile_CertificateProviders", "DeviceProfile_CertificateProviders", Model.CertificateProviders.ToSelectListItems(Model.DeviceProfile.GetCertificateProviders())));
#line default
#line hidden
- #line 820 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 819 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
else
@@ -2379,7 +2382,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral("><None Allocated>\r\n");
- #line 829 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 828 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
else
{
@@ -2390,13 +2393,13 @@ WriteLiteral("><None Allocated>\r\n");
WriteLiteral(" \r\n");
- #line 833 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 832 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 833 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 832 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
foreach (var certificateProvider in certificateProviders)
{
@@ -2406,7 +2409,7 @@ WriteLiteral(" \r\n");
WriteLiteral(" - ");
- #line 835 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 834 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(certificateProvider.Name);
@@ -2415,7 +2418,7 @@ WriteLiteral("
- ");
WriteLiteral("
\r\n");
- #line 836 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 835 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2424,7 +2427,7 @@ WriteLiteral("\r\n");
WriteLiteral(" \r\n");
- #line 838 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 837 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
}
@@ -2438,13 +2441,13 @@ WriteLiteral(" style=\"margin-top: 4px;\"");
WriteLiteral(">Authority Certificates \r\n");
- #line 841 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 840 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 841 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 840 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canConfig && Model.CertificateAuthorityProviders.Count > 0)
{
@@ -2452,14 +2455,14 @@ WriteLiteral(">Authority Certificates\r\n");
#line default
#line hidden
- #line 843 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 842 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(CommonHelpers.CheckBoxList("DeviceProfile_CertificateAuthorityProviders", "DeviceProfile_CertificateAuthorityProviders", Model.CertificateAuthorityProviders.ToSelectListItems(Model.DeviceProfile.GetCertificateAuthorityProviders())));
#line default
#line hidden
- #line 843 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 842 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
else
@@ -2479,7 +2482,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral("><None Allocated>\r\n");
- #line 852 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 851 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
else
{
@@ -2490,13 +2493,13 @@ WriteLiteral("><None Allocated>\r\n");
WriteLiteral(" \r\n");
- #line 856 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 855 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 856 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 855 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
foreach (var certificateProvider in certificateProviders)
{
@@ -2506,7 +2509,7 @@ WriteLiteral(" \r\n");
WriteLiteral(" - ");
- #line 858 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 857 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(certificateProvider.Name);
@@ -2515,7 +2518,7 @@ WriteLiteral("
- ");
WriteLiteral("
\r\n");
- #line 859 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 858 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2524,7 +2527,7 @@ WriteLiteral("\r\n");
WriteLiteral(" \r\n");
- #line 861 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 860 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
}
@@ -2534,7 +2537,7 @@ WriteLiteral(" \r\n");
WriteLiteral(" ");
- #line 863 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 862 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canViewPlugins)
{
@@ -2555,21 +2558,21 @@ WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral(">View the (Url.Action(MVC.Config.Plugins.Install())
+ #line 866 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+, Tuple.Create(Tuple.Create("", 49701), Tuple.Create(Url.Action(MVC.Config.Plugins.Install())
#line default
#line hidden
-, 49627), false)
+, 49701), false)
);
WriteLiteral(">Plugin Catalogue to discover and install certificate provider plugins.\r\n " +
" \r\n \r\n");
- #line 870 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 869 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2579,13 +2582,13 @@ WriteLiteral(" | \r\n \r\n
\r\n
" Provision Wireless Profiles:\r\n");
- #line 876 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 875 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 876 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 875 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canConfig && Model.WirelessProfileProviders.Count > 0)
{
@@ -2595,20 +2598,20 @@ WriteLiteral(" \r\n
\r\n
\r\n
WriteLiteral("
\r\n");
- #line 879 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 878 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 879 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 878 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(AjaxHelpers.AjaxLoader("DeviceProfile_WirelessProfileProviders"));
#line default
#line hidden
- #line 879 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 878 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
@@ -2632,7 +2635,7 @@ WriteLiteral(@">
fetch('");
- #line 891 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 890 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Url.Action(MVC.API.DeviceProfile.UpdateWirelessProfileProviders(Model.DeviceProfile.Id)));
@@ -2658,7 +2661,7 @@ WriteLiteral(@"', {
");
- #line 908 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 907 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2667,13 +2670,13 @@ WriteLiteral(@"', {
WriteLiteral(" \r\n \r\n");
- #line 911 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 910 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 911 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 910 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canConfig && Model.WirelessProfileProviders.Count > 0)
{
@@ -2681,14 +2684,14 @@ WriteLiteral(" \r\n | \r\n");
#line default
#line hidden
- #line 913 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 912 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(CommonHelpers.CheckBoxList("DeviceProfile_WirelessProfileProviders", "DeviceProfile_WirelessProfileProviders", Model.WirelessProfileProviders.ToSelectListItems(Model.DeviceProfile.GetWirelessProfileProviders())));
#line default
#line hidden
- #line 913 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 912 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
else
@@ -2708,7 +2711,7 @@ WriteLiteral(" class=\"smallMessage\"");
WriteLiteral("><None Allocated>\r\n");
- #line 922 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 921 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
else
{
@@ -2719,13 +2722,13 @@ WriteLiteral("><None Allocated>\r\n");
WriteLiteral(" \r\n");
- #line 926 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 925 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 926 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 925 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
foreach (var wirelessProfileProvider in wirelessProfileProviders)
{
@@ -2735,7 +2738,7 @@ WriteLiteral(" \r\n");
WriteLiteral(" - ");
- #line 928 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 927 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(wirelessProfileProvider.Name);
@@ -2744,7 +2747,7 @@ WriteLiteral("
- ");
WriteLiteral("
\r\n");
- #line 929 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 928 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2753,7 +2756,7 @@ WriteLiteral("\r\n");
WriteLiteral(" \r\n");
- #line 931 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 930 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
}
@@ -2763,7 +2766,7 @@ WriteLiteral(" \r\n");
WriteLiteral(" ");
- #line 933 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 932 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canViewPlugins)
{
@@ -2784,21 +2787,21 @@ WriteLiteral(" class=\"fa fa-info-circle\"");
WriteLiteral(">View the (Url.Action(MVC.Config.Plugins.Install())
+ #line 936 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+, Tuple.Create(Tuple.Create("", 53359), Tuple.Create(Url.Action(MVC.Config.Plugins.Install())
#line default
#line hidden
-, 53285), false)
+, 53359), false)
);
WriteLiteral(">Plugin Catalogue to discover and install wireless profile provider plugins.\r" +
"\n \r\n \r\n");
- #line 940 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 939 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2807,13 +2810,13 @@ WriteLiteral(">Plugin Catalogue to discover and install wireless profile pro
WriteLiteral(" | \r\n
\r\n");
- #line 943 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 942 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 943 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 942 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (hideAdvanced)
{
@@ -2847,7 +2850,7 @@ WriteLiteral(@">Show Advanced Options
");
- #line 959 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 958 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2863,7 +2866,7 @@ WriteLiteral(">\r\n
\r\n Linked Groups:\r\n
WriteLiteral(" ");
- #line 966 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 965 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
{
CanConfigure = canConfig,
@@ -2881,7 +2884,7 @@ WriteLiteral("\r\n");
WriteLiteral(" ");
- #line 974 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 973 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupInstance, new LinkedGroupModel()
{
CanConfigure = canConfig,
@@ -2897,13 +2900,13 @@ WriteLiteral(" ");
WriteLiteral("\r\n");
- #line 982 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 981 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 982 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 981 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canConfig)
{
@@ -2911,14 +2914,14 @@ WriteLiteral("\r\n");
#line default
#line hidden
- #line 984 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 983 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.Partial(MVC.Config.Shared.Views.LinkedGroupShared));
#line default
#line hidden
- #line 984 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 983 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -2928,7 +2931,7 @@ WriteLiteral("\r\n");
WriteLiteral(" \r\n \r\n \r\n \r\n\r\n");
- #line 991 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 990 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.Partial(MVC.Config.Shared.Views._DeviceGroupDocumentBulkGenerate, Model));
@@ -2941,13 +2944,13 @@ WriteLiteral(" class=\"actionBar\"");
WriteLiteral(">\r\n");
- #line 993 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 992 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 993 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 992 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (Model.CanDecommission)
{
@@ -2973,13 +2976,13 @@ WriteLiteral(" title=\"Profile Device Decommission\"");
WriteLiteral(">\r\n");
- #line 997 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 996 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 997 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 996 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
using (Html.BeginForm(MVC.API.Device.DeviceProfileDecommission(Model.DeviceProfile.Id)))
{
@@ -2987,14 +2990,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
- #line 999 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 998 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.AntiForgeryToken());
#line default
#line hidden
- #line 999 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 998 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
@@ -3019,13 +3022,13 @@ WriteLiteral(" class=\"none\"");
WriteLiteral(">\r\n");
- #line 1005 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1004 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 1005 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1004 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
foreach (DecommissionReasons decommissionReason in Enum.GetValues(typeof(DecommissionReasons)).Cast().OrderBy(r => r.ToString()))
{
@@ -3036,33 +3039,33 @@ WriteLiteral(" \r\n
WriteLiteral(" type=\"radio\"");
-WriteAttribute("id", Tuple.Create(" id=\"", 56980), Tuple.Create("\"", 57052)
-, Tuple.Create(Tuple.Create("", 56985), Tuple.Create("DeviceProfile_Decommission_Dialog_Reason_", 56985), true)
+WriteAttribute("id", Tuple.Create(" id=\"", 57054), Tuple.Create("\"", 57126)
+, Tuple.Create(Tuple.Create("", 57059), Tuple.Create("DeviceProfile_Decommission_Dialog_Reason_", 57059), true)
- #line 1008 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
- , Tuple.Create(Tuple.Create("", 57026), Tuple.Create((int)decommissionReason
+ #line 1007 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ , Tuple.Create(Tuple.Create("", 57100), Tuple.Create((int)decommissionReason
#line default
#line hidden
-, 57026), false)
+, 57100), false)
);
WriteLiteral("\r\n name=\"decommissionReason\"");
-WriteAttribute("value", Tuple.Create(" value=\"", 57119), Tuple.Create("\"", 57153)
+WriteAttribute("value", Tuple.Create(" value=\"", 57193), Tuple.Create("\"", 57227)
- #line 1009 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
-, Tuple.Create(Tuple.Create("", 57127), Tuple.Create((int)decommissionReason
+ #line 1008 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+, Tuple.Create(Tuple.Create("", 57201), Tuple.Create((int)decommissionReason
#line default
#line hidden
-, 57127), false)
+, 57201), false)
);
WriteLiteral(" ");
- #line 1009 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1008 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write((decommissionReason == DecommissionReasons.EndOfLife) ? "checked=\"checked\"" : string.Empty);
@@ -3070,21 +3073,21 @@ WriteLiteral(" ");
#line hidden
WriteLiteral(" />\r\n \r\n \r\n");
- #line 1012 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1011 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -3112,7 +3115,7 @@ WriteLiteral(" />\r\n Unassign devices users\r\n
"\r\n \r\n");
- #line 1020 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1019 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -3156,7 +3159,7 @@ WriteLiteral(@">
");
- #line 1051 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1050 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -3165,7 +3168,7 @@ WriteLiteral(@">
WriteLiteral(" ");
- #line 1052 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1051 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (canDelete)
{
@@ -3193,13 +3196,13 @@ WriteLiteral(" title=\"Delete this Device Profile?\"");
WriteLiteral(">\r\n");
- #line 1056 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1055 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
#line default
#line hidden
- #line 1056 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1055 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
using (Html.BeginForm(MVC.API.DeviceProfile.Delete(Model.DeviceProfile.Id, true)))
{
@@ -3207,14 +3210,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
- #line 1058 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1057 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.AntiForgeryToken());
#line default
#line hidden
- #line 1058 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1057 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -3262,7 +3265,7 @@ WriteLiteral(@">
");
- #line 1092 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1091 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -3271,7 +3274,7 @@ WriteLiteral(@">
WriteLiteral(" ");
- #line 1093 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1092 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (Authorization.Has(Claims.Device.Actions.Export))
{
@@ -3279,14 +3282,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 1095 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1094 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.ActionLinkButton("Export Devices", MVC.Device.Export(null, Disco.Models.Services.Devices.DeviceExportTypes.Profile, Model.DeviceProfile.Id)));
#line default
#line hidden
- #line 1095 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1094 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
@@ -3296,7 +3299,7 @@ WriteLiteral(" ");
WriteLiteral(" ");
- #line 1097 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1096 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
if (Authorization.Has(Claims.Device.Search) && Model.DeviceCount > 0)
{
@@ -3304,14 +3307,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 1099 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1098 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
Write(Html.ActionLinkButton(string.Format("View {0} Device{1}", Model.DeviceCount, (Model.DeviceCount != 1 ? "s" : null)), MVC.Search.Query(Model.DeviceProfile.Id.ToString(), "DeviceProfile")));
#line default
#line hidden
- #line 1099 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
+ #line 1098 "..\..\Areas\Config\Views\DeviceProfile\Show.cshtml"
}
diff --git a/Disco.Web/Areas/Config/Views/SystemConfig/Index.cshtml b/Disco.Web/Areas/Config/Views/SystemConfig/Index.cshtml
index e32bd9f2..26f1e6c8 100644
--- a/Disco.Web/Areas/Config/Views/SystemConfig/Index.cshtml
+++ b/Disco.Web/Areas/Config/Views/SystemConfig/Index.cshtml
@@ -545,9 +545,9 @@
{
-
+
@AjaxHelpers.AjaxLoader() Loading Organisational Units
@@ -589,7 +589,7 @@
}
}
- function update() {
+ async function update() {
if (!$dialog) {
$dialog = $('#Config_System_AD_SearchScope_Dialog').dialog({
@@ -608,51 +608,55 @@
$dialog.css('overflow', 'visible');
$tree.css('height', '100%');
- $.getJSON('@(Url.Action(MVC.API.System.DomainOrganisationalUnits()))', null, function (data) {
- $loading.hide();
+ const body = new FormData();
+ body.append('__RequestVerificationToken', document.body.dataset.antiforgery);
+ const response = await fetch($dialog.attr('data-url'), {
+ method: 'POST',
+ body: body
+ });
+ const data = await response.json();
+ $loading.hide();
- tree = $tree.fancytree({
- source: data,
- checkbox: true,
- selectMode: 2,
- keyboard: false,
- fx: null
- }).fancytree('getTree');
+ tree = $tree.fancytree({
+ source: data,
+ checkbox: true,
+ selectMode: 2,
+ keyboard: false,
+ fx: null
+ }).fancytree('getTree');
- tree.$container.css('position', 'relative');
+ tree.$container.css('position', 'relative');
- // Set Buttons
- $dialog.dialog('option', 'buttons', {
- 'Search Entire Directory': function () {
- var $this = $(this);
- $this.css('overflow', 'hidden');
- $this.dialog("disable");
- $this.dialog("option", "buttons", null);
+ // Set Buttons
+ $dialog.dialog('option', 'buttons', {
+ 'Search Entire Directory': function () {
+ var $this = $(this);
+ $this.css('overflow', 'hidden');
+ $this.dialog("disable");
+ $this.dialog("option", "buttons", null);
- var $form = $dialog.find('form');
- $form.submit();
- },
- 'Save': function () {
- var $this = $(this);
- $this.css('overflow', 'hidden');
- $this.dialog("disable");
- $this.dialog("option", "buttons", null);
+ var $form = $dialog.find('form');
+ $form.submit();
+ },
+ 'Save': function () {
+ var $this = $(this);
+ $this.css('overflow', 'hidden');
+ $this.dialog("disable");
+ $this.dialog("option", "buttons", null);
- var nodes = tree.getSelectedNodes();
- var $form = $dialog.find('form');
- $.each(nodes, function (i, node) {
- $(' ').attr({ 'type': 'hidden', 'name': 'Containers', 'value': node.key }).appendTo($form);
- });
- $form.submit();
- }
- });
-
- // Select & Expand
- selectDistinguishedNames();
-
- tree.options.fx = { height: "toggle", duration: 200 };
+ var nodes = tree.getSelectedNodes();
+ var $form = $dialog.find('form');
+ $.each(nodes, function (i, node) {
+ $(' ').attr({ 'type': 'hidden', 'name': 'Containers', 'value': node.key }).appendTo($form);
+ });
+ $form.submit();
+ }
});
+ // Select & Expand
+ selectDistinguishedNames();
+
+ tree.options.fx = { height: "toggle", duration: 200 };
}
selectDistinguishedNames();
diff --git a/Disco.Web/Areas/Config/Views/SystemConfig/Index.generated.cs b/Disco.Web/Areas/Config/Views/SystemConfig/Index.generated.cs
index 4e805918..092b13fb 100644
--- a/Disco.Web/Areas/Config/Views/SystemConfig/Index.generated.cs
+++ b/Disco.Web/Areas/Config/Views/SystemConfig/Index.generated.cs
@@ -1963,15 +1963,15 @@ WriteLiteral(" ");
#line default
#line hidden
WriteLiteral(" \r\n");
+WriteLiteral(">Update\r\n \r\n");
WriteLiteral(" \r\n \r\n $(function
"lse if (node.isSelected()) {\r\n node.s" +
"etSelected(false);\r\n }\r\n " +
" });\r\n }\r\n " +
-" }\r\n\r\n function update() {\r\n\r\n " +
-" if (!$dialog) {\r\n $dialog = $(" +
-"\'#Config_System_AD_SearchScope_Dialog\').dialog({\r\n " +
-" autoOpen: false,\r\n buttons: nul" +
-"l,\r\n draggable: false,\r\n " +
-" modal: true,\r\n res" +
-"izable: false,\r\n width: 500,\r\n " +
-" height: 500\r\n })" +
-";\r\n $loading = $(\'#Config_System_AD_SearchSco" +
-"pe_Dialog_Loading\');\r\n $loading.find(\'i.ajaxL" +
-"oading\').show();\r\n\r\n $tree = $(\'#Config_Syste" +
-"m_AD_SearchScope_Tree\');\r\n $dialog.css(\'overf" +
-"low\', \'visible\');\r\n $tree.css(\'height\', \'100%" +
-"\');\r\n\r\n $.getJSON(\'");
-
-
- #line 611 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
- Write(Url.Action(MVC.API.System.DomainOrganisationalUnits()));
-
-
- #line default
- #line hidden
-WriteLiteral("\', null, function (data) {\r\n $loading.hide" +
-"();\r\n\r\n tree = $tree.fancytree({\r\n " +
-" source: data,\r\n " +
-" checkbox: true,\r\n sel" +
-"ectMode: 2,\r\n keyboard: false,\r\n " +
-" fx: null\r\n " +
-" }).fancytree(\'getTree\');\r\n\r\n tre" +
-"e.$container.css(\'position\', \'relative\');\r\n\r\n " +
-" // Set Buttons\r\n $dialog.dialog(\'opt" +
-"ion\', \'buttons\', {\r\n \'Search Entire D" +
-"irectory\': function () {\r\n var $t" +
-"his = $(this);\r\n $this.css(\'overf" +
-"low\', \'hidden\');\r\n $this.dialog(\"" +
-"disable\");\r\n $this.dialog(\"option" +
-"\", \"buttons\", null);\r\n\r\n var $for" +
-"m = $dialog.find(\'form\');\r\n $form" +
-".submit();\r\n },\r\n " +
-" \'Save\': function () {\r\n " +
+" }\r\n\r\n async function update() {\r\n\r\n " +
+" if (!$dialog) {\r\n $dialo" +
+"g = $(\'#Config_System_AD_SearchScope_Dialog\').dialog({\r\n " +
+" autoOpen: false,\r\n button" +
+"s: null,\r\n draggable: false,\r\n " +
+" modal: true,\r\n " +
+" resizable: false,\r\n width: 500,\r\n " +
+" height: 500\r\n " +
+" });\r\n $loading = $(\'#Config_System_AD_Sea" +
+"rchScope_Dialog_Loading\');\r\n $loading.find(\'i" +
+".ajaxLoading\').show();\r\n\r\n $tree = $(\'#Config" +
+"_System_AD_SearchScope_Tree\');\r\n $dialog.css(" +
+"\'overflow\', \'visible\');\r\n $tree.css(\'height\'," +
+" \'100%\');\r\n\r\n const body = new FormData();\r\n " +
+" body.append(\'__RequestVerificationToken\', doc" +
+"ument.body.dataset.antiforgery);\r\n const resp" +
+"onse = await fetch($dialog.attr(\'data-url\'), {\r\n " +
+" method: \'POST\',\r\n body: body\r\n " +
+" });\r\n const " +
+"data = await response.json();\r\n $loading.hide" +
+"();\r\n\r\n tree = $tree.fancytree({\r\n " +
+" source: data,\r\n " +
+" checkbox: true,\r\n selectMode: 2,\r\n " +
+" keyboard: false,\r\n " +
+" fx: null\r\n }).fancytree(\'getTr" +
+"ee\');\r\n\r\n tree.$container.css(\'position\', \'re" +
+"lative\');\r\n\r\n // Set Buttons\r\n " +
+" $dialog.dialog(\'option\', \'buttons\', {\r\n " +
+" \'Search Entire Directory\': function () {\r\n " +
+" var $this = $(this);\r\n " +
+" $this.css(\'overflow\', \'hidden\');\r\n " +
+" $this.dialog(\"disable\");\r\n " +
+"$this.dialog(\"option\", \"buttons\", null);\r\n\r\n " +
+" var $form = $dialog.find(\'form\');\r\n " +
+" $form.submit();\r\n },\r\n " +
+" \'Save\': function () {\r\n " +
" var $this = $(this);\r\n " +
-" $this.css(\'overflow\', \'hidden\');\r\n " +
-" $this.dialog(\"disable\");\r\n " +
-" $this.dialog(\"option\", \"buttons\", null);\r\n\r\n " +
-" var nodes = tree.getSelectedNodes();\r\n " +
-" var $form = $dialog.find(\'form\');\r\n " +
-" $.each(nodes, function (i, node) {\r\n " +
-" $(\'\').attr({ \'type\': \'hidden\', \'name\': \'Con" +
-"tainers\', \'value\': node.key }).appendTo($form);\r\n " +
-" });\r\n $form.subm" +
-"it();\r\n }\r\n " +
-" });\r\n\r\n // Select & Expand\r" +
-"\n selectDistinguishedNames();\r\n\r\n " +
-" tree.options.fx = { height: \"toggle\", duration: " +
-"200 };\r\n });\r\n\r\n " +
-" }\r\n\r\n selectDistinguishedNames();\r\n\r\n " +
-" $dialog.dialog(\'open\');\r\n\r\n " +
-" return false;\r\n }\r\n\r\n $(" +
-"\'#Config_System_AD_SearchScope_Update\').click(update);\r\n " +
-"});\r\n \r\n");
+" $this.css(\'overflow\', \'hidden\');\r\n $" +
+"this.dialog(\"disable\");\r\n $this.dialo" +
+"g(\"option\", \"buttons\", null);\r\n\r\n var" +
+" nodes = tree.getSelectedNodes();\r\n v" +
+"ar $form = $dialog.find(\'form\');\r\n $." +
+"each(nodes, function (i, node) {\r\n " +
+" $(\'\').attr({ \'type\': \'hidden\', \'name\': \'Containers\', \'value\': node.key " +
+"}).appendTo($form);\r\n });\r\n " +
+" $form.submit();\r\n " +
+" }\r\n });\r\n\r\n " +
+" // Select & Expand\r\n selectDisti" +
+"nguishedNames();\r\n\r\n tree.options.fx = { heig" +
+"ht: \"toggle\", duration: 200 };\r\n }\r\n\r\n " +
+" selectDistinguishedNames();\r\n\r\n " +
+" $dialog.dialog(\'open\');\r\n\r\n return false;\r\n " +
+" }\r\n\r\n $(\'#Config_System_AD_" +
+"SearchScope_Update\').click(update);\r\n });\r\n " +
+" \r\n");
- #line 668 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
+ #line 672 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
}
@@ -2128,7 +2134,7 @@ WriteLiteral("\', null, function (data) {\r\n
WriteLiteral(" \r\n\r\n\r\n\r\n \r\n \r\n \r\n");
- #line 676 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
+ #line 680 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
if (canConfigProxy)
{
using (Html.BeginForm(MVC.API.System.UpdateProxySettings()))
@@ -2138,14 +2144,14 @@ WriteLiteral(" \r\n\r\n\r\n\r\n \r\n \r\n
#line default
#line hidden
- #line 680 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
+ #line 684 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.AntiForgeryToken());
#line default
#line hidden
- #line 680 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
+ #line 684 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
@@ -2168,7 +2174,7 @@ WriteLiteral(">\r\n Address:\r\n |
WriteLiteral(" ");
- #line 689 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
+ #line 693 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.EditorFor(m => m.ProxyAddress));
@@ -2179,7 +2185,7 @@ WriteLiteral("
\r\n");
WriteLiteral(" ");
- #line 690 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
+ #line 694 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyAddress));
@@ -2196,7 +2202,7 @@ WriteLiteral(">\r\n Port:\r\n \r\
WriteLiteral(" ");
- #line 698 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
+ #line 702 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.EditorFor(m => m.ProxyPort));
@@ -2207,7 +2213,7 @@ WriteLiteral("
\r\n");
WriteLiteral(" ");
- #line 699 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
+ #line 703 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyPort));
@@ -2224,7 +2230,7 @@ WriteLiteral(">\r\n Username:\r\n m.ProxyUsername));
@@ -2235,7 +2241,7 @@ WriteLiteral("
\r\n");
WriteLiteral(" ");
- #line 708 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
+ #line 712 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyUsername));
@@ -2252,7 +2258,7 @@ WriteLiteral(">\r\n Password:\r\n m.ProxyPassword));
@@ -2263,7 +2269,7 @@ WriteLiteral("
\r\n");
WriteLiteral(" ");
- #line 717 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
+ #line 721 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(Html.ValidationMessageFor(m => m.ProxyPassword));
@@ -2286,7 +2292,7 @@ WriteLiteral(" class=\"button small\"");
WriteLiteral(">Save Proxy Settings");
- #line 725 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
+ #line 729 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
Write(AjaxHelpers.AjaxLoader());
@@ -2314,7 +2320,7 @@ WriteLiteral("\r\n
-");
-
-
- #line 888 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 894 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
}
@@ -2560,7 +2554,7 @@ WriteLiteral(@"', function (response, result) {
WriteLiteral(" ");
- #line 889 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 895 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
if (canDelete)
{
@@ -2588,13 +2582,13 @@ WriteLiteral(" class=\"dialog\"");
WriteLiteral(">\r\n");
- #line 893 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 899 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
#line default
#line hidden
- #line 893 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 899 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
using (Html.BeginForm(MVC.API.UserFlag.Delete(Model.UserFlag.Id, true)))
{
@@ -2602,14 +2596,14 @@ WriteLiteral(">\r\n");
#line default
#line hidden
- #line 895 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 901 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
Write(Html.AntiForgeryToken());
#line default
#line hidden
- #line 895 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 901 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
}
@@ -2624,13 +2618,13 @@ WriteLiteral(">\r\n This item will be permanently deleted
"covered.
\r\n
\r\n");
- #line 901 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 907 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
#line default
#line hidden
- #line 901 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 907 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
if (Model.CurrentAssignmentCount > 0)
{
@@ -2640,7 +2634,7 @@ WriteLiteral(">\r\n This item will be permanently deleted
WriteLiteral("
");
- #line 903 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 909 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
Write(Model.CurrentAssignmentCount);
@@ -2649,7 +2643,7 @@ WriteLiteral(" ");
WriteLiteral(" user");
- #line 903 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 909 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
Write(Model.CurrentAssignmentCount != 1 ? "s are" : " is");
@@ -2662,7 +2656,7 @@ WriteLiteral("
\r\n");
WriteLiteral("
\r\n");
- #line 906 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 912 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
}
@@ -2703,7 +2697,7 @@ WriteLiteral(@">
");
- #line 936 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 942 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
}
@@ -2712,7 +2706,7 @@ WriteLiteral(@">
WriteLiteral(" ");
- #line 937 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 943 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
if (canShowUsers)
{
@@ -2720,14 +2714,14 @@ WriteLiteral(" ");
#line default
#line hidden
- #line 939 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 945 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
Write(Html.ActionLinkButton(string.Format("Show {0} user{1}", Model.CurrentAssignmentCount, (Model.CurrentAssignmentCount == 1 ? null : "s")), MVC.Search.Query(Model.UserFlag.Id.ToString(), "UserFlag"), "Config_UserFlags_Actions_ShowUsers_Button"));
#line default
#line hidden
- #line 939 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 945 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
}
@@ -2737,7 +2731,7 @@ WriteLiteral(" ");
WriteLiteral(" \r\n");
- #line 942 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
+ #line 948 "..\..\Areas\Config\Views\UserFlag\Show.cshtml"
}
diff --git a/Disco.Web/Areas/Public/Views/HeldDevices/Noticeboard.cshtml b/Disco.Web/Areas/Public/Views/HeldDevices/Noticeboard.cshtml
index 7be86fdb..a91710ff 100644
--- a/Disco.Web/Areas/Public/Views/HeldDevices/Noticeboard.cshtml
+++ b/Disco.Web/Areas/Public/Views/HeldDevices/Noticeboard.cshtml
@@ -14,7 +14,7 @@