Return-Path: X-Original-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67374EBF6 for ; Mon, 14 Jan 2013 18:00:36 +0000 (UTC) Received: (qmail 30484 invoked by uid 500); 14 Jan 2013 18:00:34 -0000 Delivered-To: apmail-incubator-cloudstack-commits-archive@incubator.apache.org Received: (qmail 30412 invoked by uid 500); 14 Jan 2013 18:00:34 -0000 Mailing-List: contact cloudstack-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-commits@incubator.apache.org Received: (qmail 30215 invoked by uid 99); 14 Jan 2013 18:00:34 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jan 2013 18:00:34 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 0E7FF1A37B; Mon, 14 Jan 2013 18:00:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bfederle@apache.org To: cloudstack-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [48/51] git commit: CLOUDSTACK-971:Error Dialog is empty Message-Id: <20130114180034.0E7FF1A37B@tyr.zones.apache.org> Date: Mon, 14 Jan 2013 18:00:34 +0000 (UTC) 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 Authored: Mon Jan 14 16:49:42 2013 +0530 Committer: Pranav Saxena 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 "";