Skip to content

Commit 4e569f8

Browse files
author
Jessica Wang
committed
volume-upload: UI > upload template from local > fix a bug that fields below OS Type field (isPublic, isFeatured, ~ ) are not created.
1 parent 68789b7 commit 4e569f8

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

‎ui/scripts/templates.js‎

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -856,20 +856,18 @@
856856
osTypeId: {
857857
label: 'label.os.type',
858858
docID: 'helpRegisterTemplateOSType',
859-
select: function(args) {
860-
if (ostypeObjs == undefined) {
861-
$.ajax({
862-
url: createURL("listOsTypes"),
863-
dataType: "json",
864-
async: false,
865-
success: function(json) {
866-
ostypeObjs = json.listostypesresponse.ostype;
867-
}
868-
});
869-
}
870-
args.response.success({
871-
data: ostypeObjs
872-
});
859+
select: function(args) {
860+
$.ajax({
861+
url: createURL("listOsTypes"),
862+
dataType: "json",
863+
async: true,
864+
success: function(json) {
865+
var ostypeObjs = json.listostypesresponse.ostype;
866+
args.response.success({
867+
data: ostypeObjs
868+
});
869+
}
870+
});
873871
}
874872
},
875873

0 commit comments

Comments
 (0)