Merge pull request #19990 from faissaloux/rhs-hide

Hide `rhs` when not needed
This commit is contained in:
Maurício Meneghini Fauth 2025-12-15 15:30:31 -03:00 committed by GitHub
commit aa153def95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,8 +11,15 @@ import { escapeBacktick, escapeSingleQuote } from '../modules/functions/escape.t
$(document).on('change', '.criteria_op', function () {
const op = $(this).val();
const criteria = $(this).closest('.table').find('.rhs_text_val');
const rhs = $(this).closest('.table').find('.criteria_rhs');
isOpWithoutArg(op) ? criteria.hide().val('') : criteria.show();
if (isOpWithoutArg(op)) {
criteria.hide().val('');
rhs.hide();
} else {
criteria.show();
rhs.show();
}
});
function getFormatsText () {