mirror of https://github.com/apache/cloudstack.git
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…
Reference in New Issue