Refactor DisplayManager for admin field display rules centralization.

This commit is contained in:
Pedro Silva 2023-09-15 17:32:00 +01:00
parent 93f7e5dca6
commit e31e09f0c7
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
20 changed files with 619 additions and 273 deletions

View file

@ -0,0 +1,13 @@
export const inputValue = (element) => {
const $el = jQuery(element);
if ($el.is(':checkbox') || $el.is(':radio')) {
if ($el.is(':checked')) {
return $el.val();
} else {
return null;
}
} else {
return $el.val();
}
}