Updated Branches:
  refs/heads/4.1 2ea359c5d -> cb2b0ef66

CLOUDSTACK-618: cloudstack UI - API request throttling - for async job action 
uploadCustomCertificate, make frequency of calling queryAsyncJobResult API 
based on listCapabilities response.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/cb2b0ef6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/cb2b0ef6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/cb2b0ef6

Branch: refs/heads/4.1
Commit: cb2b0ef66bcf549d498824c8e7e805d45f69a098
Parents: 2ea359c
Author: Jessica Wang <[email protected]>
Authored: Wed Feb 13 11:44:31 2013 -0800
Committer: Jessica Wang <[email protected]>
Committed: Wed Feb 13 11:44:31 2013 -0800

----------------------------------------------------------------------
 ui/scripts/sharedFunctions.js             |    2 +-
 ui/scripts/ui-custom/physicalResources.js |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/cb2b0ef6/ui/scripts/sharedFunctions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js
index 026089f..ad26b34 100644
--- a/ui/scripts/sharedFunctions.js
+++ b/ui/scripts/sharedFunctions.js
@@ -26,7 +26,7 @@ var g_timezone = null;
 var g_supportELB = null;
 var g_userPublicTemplateEnabled = "true";
 var g_cloudstackversion = null;
-var g_queryAsyncJobResultInterval = 6000;
+var g_queryAsyncJobResultInterval = 3000;
 
 //keyboard keycode
 var keycode_Enter = 13;

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/cb2b0ef6/ui/scripts/ui-custom/physicalResources.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/physicalResources.js 
b/ui/scripts/ui-custom/physicalResources.js
index a247dcf..69c0295 100644
--- a/ui/scripts/ui-custom/physicalResources.js
+++ b/ui/scripts/ui-custom/physicalResources.js
@@ -111,7 +111,7 @@
                       $loading.remove();
                     }
                   });
-                }, 3000);              
+                }, g_queryAsyncJobResultInterval);             
               },
               error: function(XMLHttpResponse) {
                 cloudStack.dialog.notice({ message: 'Failed to update SSL 
Certificate. ' + parseXMLHttpResponse(XMLHttpResponse) });

Reply via email to