mirror of https://github.com/apache/cloudstack.git
bug 14023: extend dialog widget to support textarea field.
This commit is contained in:
parent
65e160b7e6
commit
a601ef4c11
|
|
@ -54,10 +54,11 @@
|
|||
$dashboard.find('#update_ssl_button').click(function() {
|
||||
cloudStack.dialog.createForm({
|
||||
form: {
|
||||
title: 'label.update.ssl',
|
||||
title: 'label.update.ssl',
|
||||
desc: 'message.update.ssl',
|
||||
fields: {
|
||||
certificate: { label: 'label.certificate' },
|
||||
privatekey: { label: 'label.privatekey' },
|
||||
certificate: { label: 'label.certificate', isTextarea: true },
|
||||
privatekey: { label: 'label.privatekey', isTextarea: true },
|
||||
domainsuffix: { label: 'label.domain.suffix' }
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -242,6 +242,14 @@
|
|||
}
|
||||
}
|
||||
});
|
||||
} else if(field.isTextarea) {
|
||||
$input = $('<textarea>').attr({
|
||||
name: key
|
||||
}).appendTo($value);
|
||||
|
||||
if (field.defaultValue) {
|
||||
$input.val(field.defaultValue);
|
||||
}
|
||||
} else {
|
||||
// Text field
|
||||
if (field.range) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue