A bunch of sqlform fixes
This commit is contained in:
parent
4a67861792
commit
32662367ec
4 changed files with 155 additions and 3 deletions
|
|
@ -39,7 +39,10 @@ function updateFormFields() {
|
|||
// Handle Field constraints section
|
||||
if (document.getElementById('SQLFormFieldConstraintType').value > 0) {
|
||||
enableField('SQLFormFieldConstraintTarget');
|
||||
if (document.getElementById('SQLFormFieldConstraintTarget').value == 'value') {
|
||||
if (
|
||||
(document.getElementById('SQLFormFieldConstraintTarget').value == 'value') ||
|
||||
(document.getElementById('SQLFormFieldConstraintTarget').value == '' && document.getElementById('SQLFormFieldConstraintValue').value != '')
|
||||
) {
|
||||
enableField('SQLFormFieldConstraintValue');
|
||||
} else {
|
||||
disableField('SQLFormFieldConstraintValue');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue