Skip to content

Commit

Permalink
Keep Current Limit disabled for RF Only
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Dec 9, 2024
1 parent 1c506cc commit e543b52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/webapp/resources/js/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ $(document).on("change", ".mode-select", function(){
$comments = $tr.find(".comment-input"),
$expiration = $tr.find(".expiration-input");

if($select.val() === 'None') {
if($select.val() === 'RF Only') {
$limit.attr('readonly', 'readonly');
$comments.removeAttr('readonly');
$expiration.removeAttr('readonly');
} else if($select.val() === 'None') {
$limit.val('');
$comments.val('');
$expiration.val('');
Expand Down

0 comments on commit e543b52

Please sign in to comment.