mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
fc39ec6967
commit
deefae0963
@ -875,8 +875,10 @@ define(function(require) {
|
||||
function isRDPSupported(element) {
|
||||
return ( element.TEMPLATE &&
|
||||
element.TEMPLATE.NIC &&
|
||||
element.TEMPLATE.NIC.length > 0 &&
|
||||
element.TEMPLATE.NIC.filter(nic => nic.RDP && nic.RDP == "YES")
|
||||
Array.isArray(element.TEMPLATE.NIC) &&
|
||||
element.TEMPLATE.NIC.some(function(nic) {
|
||||
return nic.RDP && nic.RDP == "YES"
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,9 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _retrieveInput(value) {
|
||||
return TemplateUtils.escapeDoubleQuotes( value );
|
||||
return (value instanceof $)
|
||||
? value.val()
|
||||
: TemplateUtils.escapeDoubleQuotes( value );
|
||||
}
|
||||
|
||||
// TODO: wizard_field_64 for fill method
|
||||
|
Loading…
x
Reference in New Issue
Block a user