1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B #4269: Fix retrieve input function (#4275)

This commit is contained in:
Sergio Betanzos 2020-02-27 11:01:58 +01:00 committed by GitHub
parent af18bceab7
commit 9b271c3b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,10 +53,12 @@ define(function(require) {
return templateJSON;
}
function _retrieveInput(value) {
return (value instanceof $)
? value.val()
: TemplateUtils.escapeDoubleQuotes( value );
function _retrieveInput(input) {
return TemplateUtils.escapeDoubleQuotes(
(input instanceof $)
? input.val()
: input
);
}
// TODO: wizard_field_64 for fill method