Updated Branches:
  refs/heads/master a30fe62b1 -> af1d5d00f

cloudstack 3.0 UI - fix space problem from a patch


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

Branch: refs/heads/master
Commit: af1d5d00f7c072a9fd7a168bb67b9124faaf499b
Parents: a30fe62
Author: Jessica Wang <[email protected]>
Authored: Wed Jun 27 13:52:06 2012 -0700
Committer: Jessica Wang <[email protected]>
Committed: Wed Jun 27 14:11:25 2012 -0700

----------------------------------------------------------------------
 ui/scripts/cloudStack.js |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/af1d5d00/ui/scripts/cloudStack.js
----------------------------------------------------------------------
diff --git a/ui/scripts/cloudStack.js b/ui/scripts/cloudStack.js
index 3293c25..1d2dbe8 100644
--- a/ui/scripts/cloudStack.js
+++ b/ui/scripts/cloudStack.js
@@ -66,21 +66,21 @@
       dataType: 'json',
       cache: false,
       error: function(data) {
-           var clickAction = false;
-               if (isValidJsonString(data.responseText)) {
-                       var json = JSON.parse(data.responseText);
-                       if (json != null) {
-                               var property;
-                               for(property in json) {}
-                               var errorObj = json[property];
-                               if(errorObj.errorcode == 401 && 
errorObj.errortext == "unable to verify user credentials and/or request 
signature") {
-                                       clickAction = function() {
-                                               $('#user-options 
a').eq(0).trigger('click');
-                                       };
+                               var clickAction = false;
+                               if (isValidJsonString(data.responseText)) {
+                                       var json = 
JSON.parse(data.responseText);
+                                       if (json != null) {
+                                               var property;
+                                               for(property in json) {}
+                                               var errorObj = json[property];
+                                               if(errorObj.errorcode == 401 && 
errorObj.errortext == "unable to verify user credentials and/or request 
signature") {
+                                                       clickAction = 
function() {
+                                                               
$('#user-options a').eq(0).trigger('click');
+                                                       };
+                                               }
+                                       }
                                }
-                       }
-               }
-               cloudStack.dialog.notice({ message: parseXMLHttpResponse(data), 
clickAction: clickAction });
+                               cloudStack.dialog.notice({ message: 
parseXMLHttpResponse(data), clickAction: clickAction });
       },
                        beforeSend: function(XMLHttpRequest) {
                                if (g_mySession == $.cookie("JSESSIONID")) {

Reply via email to