Skip to content

Commit 8e2fc79

Browse files
author
Jessica Wang
committed
cloudStack 3.0 UI - validation - apply new method "disallowSpecialCharacters" to all textfields in dialog widget.
1 parent f0cb103 commit 8e2fc79

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

ui/scripts/domains.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@
172172
fields: {
173173
name: {
174174
label: 'label.name',
175-
validation: { required: true, disallowSpecialCharacters: true }
175+
validation: { required: true }
176176
},
177177
networkdomain: {
178178
label: 'label.network.domain',
179-
validation: { required: false, disallowSpecialCharacters: true }
179+
validation: { required: false }
180180
}
181181
}
182182
}

ui/scripts/ui/dialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@
279279
if (field.defaultValue) {
280280
$input.val(field.defaultValue);
281281
}
282-
}
282+
}
283+
$input.addClass("disallowSpecialCharacters");
283284
}
284285

285286
$input.data('validation-rules', field.validation);

0 commit comments

Comments
 (0)