From 8c40b043284f5999399f1e01aaf04d4b6ae2e043 Mon Sep 17 00:00:00 2001 From: sunnavy Date: Fri, 10 Jan 2025 10:34:17 -0500 Subject: [PATCH] Migrate inline js in EditRights to util.js Inline js doesn't fully work any more because of htmx changes. E.g. after clicking "Save Changes", no right lists will show up. This commit refactors it to make it work with htmx. --- share/html/Admin/Elements/EditRights | 143 +-------------------------- share/static/js/util.js | 135 +++++++++++++++++++++++++ 2 files changed, 137 insertions(+), 141 deletions(-) diff --git a/share/html/Admin/Elements/EditRights b/share/html/Admin/Elements/EditRights index 39f927f7c8..167e373faf 100644 --- a/share/html/Admin/Elements/EditRights +++ b/share/html/Admin/Elements/EditRights @@ -82,133 +82,8 @@ if ($anchor =~ /AddPrincipal/) { %# The last value is a boolean determining if the value of DisplayColumn %# should be loc()-ed before display. - - -
- +
+
@@ -238,20 +113,6 @@ for my $category (@$Principals) { } % if ( $AddPrincipal ) { - - -