From d218641559ea6b81ee62f24a6d545da24cb706bf Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 31 Jul 2012 15:02:40 -0700 Subject: [PATCH] cloudstack 3.0 UI - autoscale - rename add action to apply action since the action is used by both creation mode and edit mode now. --- ui/scripts/autoscaler.js | 2 +- ui/scripts/ui-custom/autoscaler.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,