You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/01/14 19:00:34 UTC
[48/51] git commit: CLOUDSTACK-971:Error Dialog is empty
CLOUDSTACK-971:Error Dialog is empty
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/c06218d3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/c06218d3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/c06218d3
Branch: refs/heads/ui-quick-view-v2
Commit: c06218d32f3e4b20ec86303639af847cb911ec39
Parents: 127867c
Author: Pranav Saxena <pr...@citrix.com>
Authored: Mon Jan 14 16:49:42 2013 +0530
Committer: Pranav Saxena <pr...@citrix.com>
Committed: Mon Jan 14 16:49:42 2013 +0530
----------------------------------------------------------------------
ui/scripts/sharedFunctions.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/c06218d3/ui/scripts/sharedFunctions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js
index eb78ad1..51c4fdb 100644
--- a/ui/scripts/sharedFunctions.js
+++ b/ui/scripts/sharedFunctions.js
@@ -208,12 +208,13 @@ function parseXMLHttpResponse(XMLHttpResponse) {
var json = JSON.parse(XMLHttpResponse.responseText);
if (json != null) {
var property;
- for(property in json) {}
+ for(property in json) {
var errorObj = json[property];
if(errorObj.errorcode == 401 && errorObj.errortext == "unable to verify user credentials and/or request signature")
return _l('label.session.expired');
else
return _s(errorObj.errortext);
+ }
}
else {
return "";