Skip to content

Commit af1d5d0

Browse files
author
Jessica Wang
committed
cloudstack 3.0 UI - fix space problem from a patch
1 parent a30fe62 commit af1d5d0

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

‎ui/scripts/cloudStack.js‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@
6666
dataType: 'json',
6767
cache: false,
6868
error: function(data) {
69-
var clickAction = false;
70-
if (isValidJsonString(data.responseText)) {
71-
var json = JSON.parse(data.responseText);
72-
if (json != null) {
73-
var property;
74-
for(property in json) {}
75-
var errorObj = json[property];
76-
if(errorObj.errorcode == 401 && errorObj.errortext == "unable to verify user credentials and/or request signature") {
77-
clickAction = function() {
78-
$('#user-options a').eq(0).trigger('click');
79-
};
69+
var clickAction = false;
70+
if (isValidJsonString(data.responseText)) {
71+
var json = JSON.parse(data.responseText);
72+
if (json != null) {
73+
var property;
74+
for(property in json) {}
75+
var errorObj = json[property];
76+
if(errorObj.errorcode == 401 && errorObj.errortext == "unable to verify user credentials and/or request signature") {
77+
clickAction = function() {
78+
$('#user-options a').eq(0).trigger('click');
79+
};
80+
}
81+
}
8082
}
81-
}
82-
}
83-
cloudStack.dialog.notice({ message: parseXMLHttpResponse(data), clickAction: clickAction });
83+
cloudStack.dialog.notice({ message: parseXMLHttpResponse(data), clickAction: clickAction });
8484
},
8585
beforeSend: function(XMLHttpRequest) {
8686
if (g_mySession == $.cookie("JSESSIONID")) {

0 commit comments

Comments
 (0)