Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9F2A81072C for ; Mon, 16 Feb 2015 16:47:55 +0000 (UTC) Received: (qmail 51600 invoked by uid 500); 16 Feb 2015 16:47:44 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 51551 invoked by uid 500); 16 Feb 2015 16:47:44 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 50329 invoked by uid 99); 16 Feb 2015 16:47:43 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 16:47:43 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 56F3CE0989; Mon, 16 Feb 2015 16:47:43 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dahn@apache.org To: commits@cloudstack.apache.org Date: Mon, 16 Feb 2015 16:48:16 -0000 Message-Id: In-Reply-To: <01c69cd6b912462c96d5f8bdd3339ac2@git.apache.org> References: <01c69cd6b912462c96d5f8bdd3339ac2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [35/50] [abbrv] git commit: updated refs/heads/feature/systemvm-persistent-config to 8620642 Show all routers of a VPC - For redundant VPCs, we should see 2 routers - For single VPCs, we should see 1 router. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c404e3f5 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c404e3f5 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c404e3f5 Branch: refs/heads/feature/systemvm-persistent-config Commit: c404e3f550fdf1344cd3a71e0e949ef3cae0385b Parents: abaf8c0 Author: wilderrodrigues Authored: Thu Feb 5 08:58:08 2015 +0100 Committer: wilderrodrigues Committed: Mon Feb 16 16:08:43 2015 +0100 ---------------------------------------------------------------------- ui/scripts/network.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c404e3f5/ui/scripts/network.js ---------------------------------------------------------------------- diff --git a/ui/scripts/network.js b/ui/scripts/network.js index 5a1d64c..265062e 100755 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -5777,12 +5777,14 @@ dataType: "json", async: true, success: function(json) { - var item = json.listroutersresponse.router[0]; + for (var i = 0; i < json.listroutersresponse.router.length; i++) { + var item = json.listroutersresponse.router[i]; - args.response.success({ - actionFilter: cloudStack.sections.system.routerActionFilter, - data: item - }); + args.response.success({ + actionFilter: cloudStack.sections.system.routerActionFilter, + data: item + }); + } } }); }