cloudstack 3.0 UI - autoscale - rename add action to apply action since the action is used by both creation mode and edit mode now.

This commit is contained in:
Jessica Wang 2012-07-31 15:02:40 -07:00
parent 6826dd16b5
commit d218641559
2 changed files with 2 additions and 2 deletions

View File

@ -630,7 +630,7 @@
},
actions: {
add: function(args) {
apply: function(args) {
//validation (begin) *****
if(isAdmin() || isDomainAdmin()) { //only admin and domain-admin has access to listUers API
var havingApiKeyAndSecretKey = false;

View File

@ -238,7 +238,7 @@
var data = cloudStack.serializeForm($('.ui-dialog .autoscaler form'));
$loading.appendTo($autoscalerDialog);
cloudStack.autoscaler.actions.add({
cloudStack.autoscaler.actions.apply({
formData: formData,
context: context,
data: data,