mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
cloudStack 3.0 UI - validation - apply new method "disallowSpecialCharacters" to all textfields in dialog widget.
This commit is contained in:
parent
f0cb103a98
commit
8e2fc79174
@ -172,11 +172,11 @@
|
||||
fields: {
|
||||
name: {
|
||||
label: 'label.name',
|
||||
validation: { required: true, disallowSpecialCharacters: true }
|
||||
validation: { required: true }
|
||||
},
|
||||
networkdomain: {
|
||||
label: 'label.network.domain',
|
||||
validation: { required: false, disallowSpecialCharacters: true }
|
||||
validation: { required: false }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -279,7 +279,8 @@
|
||||
if (field.defaultValue) {
|
||||
$input.val(field.defaultValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
$input.addClass("disallowSpecialCharacters");
|
||||
}
|
||||
|
||||
$input.data('validation-rules', field.validation);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user