Bug 33528: (follow-up) Correct selector for event handler

The event handler for restriction deletion needs to be adjusted
according to the new container ID. Without this change the JavaScript
confirmation message didn't appear and restrictions were deleted without
confirmation.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-06-13 11:49:44 +00:00 committed by Tomas Cohen Arazi
parent 263196d194
commit 78431a983d
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -68,7 +68,7 @@ $(document).ready(function() {
}); });
// Debarments // Debarments
$("div#reldebarments .remove_restriction").on("click",function(){ $("#reldebarments_panel .remove_restriction").on("click",function(){
return confirm( __("Remove restriction?") ); return confirm( __("Remove restriction?") );
}); });
var mrform = $("#manual_restriction_form"); var mrform = $("#manual_restriction_form");