diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js index 9361e9cefc9..5f3e9914342 100644 --- a/ui/scripts/autoscaler.js +++ b/ui/scripts/autoscaler.js @@ -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; diff --git a/ui/scripts/ui-custom/autoscaler.js b/ui/scripts/ui-custom/autoscaler.js index d3adf60a20b..4b045d22f4d 100644 --- a/ui/scripts/ui-custom/autoscaler.js +++ b/ui/scripts/ui-custom/autoscaler.js @@ -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,