cloudstack UI - project page - advanced search - (1) API doesn't take in zoneId, tagKey, tagValue. Therefore, remove the 3 fields from UI. (2) API takes in displayText. Therefore, add this field to UI.

This commit is contained in:
Jessica Wang 2012-10-26 16:10:23 -07:00
parent 802ddd43ca
commit 6358acff54

View File

@ -623,31 +623,9 @@
},
advSearchFields: {
name: { label: 'Name' },
zoneid: {
label: 'Zone',
select: function(args) {
$.ajax({
url: createURL('listZones'),
data: {
listAll: true
},
success: function(json) {
var zones = json.listzonesresponse.zone;
args.response.success({
data: $.map(zones, function(zone) {
return {
id: zone.id,
description: zone.name
};
})
});
}
});
}
},
name: { label: 'label.name' },
displaytext: { label: 'label.display.text' },
domainid: {
label: 'Domain',
select: function(args) {
@ -694,9 +672,7 @@
else
return true;
}
},
tagKey: { label: 'Tag Key' },
tagValue: { label: 'Tag Value' }
}
},
dataProvider: function(args) {