incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alena1...@apache.org
Subject [29/50] [abbrv] git commit: cloudstack 3.0 UI - fix space problem from a patch
Date Fri, 29 Jun 2012 00:45:07 GMT
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/vpc
Commit: af1d5d00f7c072a9fd7a168bb67b9124faaf499b
Parents: a30fe62
Author: Jessica Wang <jessica.wang@citrix.com>
Authored: Wed Jun 27 13:52:06 2012 -0700
Committer: Jessica Wang <jessica.wang@citrix.com>
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")) {


Mime
View raw message