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 055BDFD1C for ; Thu, 28 Mar 2013 11:16:24 +0000 (UTC) Received: (qmail 70293 invoked by uid 500); 28 Mar 2013 11:16:19 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 69864 invoked by uid 500); 28 Mar 2013 11:16:18 -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 67731 invoked by uid 99); 28 Mar 2013 11:16:11 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Mar 2013 11:16:11 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 5E713828DA2; Thu, 28 Mar 2013 11:16:11 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: nitin@apache.org To: commits@cloudstack.apache.org Date: Thu, 28 Mar 2013 11:16:19 -0000 Message-Id: <203ca828ef77436fa17480654d2bff0d@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [09/50] [abbrv] git commit: updated refs/heads/scaleupvm to 2423d4a UI: Add _reloadUI helper function Adds a console helper function, which will reinitialize the UI with the current window.cloudStack object. This is used primarily for debugging, so that any changes to the UI structure can be viewed without reloading the browser. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/abbc3b3b Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/abbc3b3b Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/abbc3b3b Branch: refs/heads/scaleupvm Commit: abbc3b3bc63c44730f9876698f04c069c79d3272 Parents: e86f811 Author: Brian Federle Authored: Fri Mar 22 10:29:48 2013 -0700 Committer: Brian Federle Committed: Fri Mar 22 10:29:48 2013 -0700 ---------------------------------------------------------------------- ui/scripts/cloudStack.js | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/abbc3b3b/ui/scripts/cloudStack.js ---------------------------------------------------------------------- diff --git a/ui/scripts/cloudStack.js b/ui/scripts/cloudStack.js index 5b6d519..985627b 100644 --- a/ui/scripts/cloudStack.js +++ b/ui/scripts/cloudStack.js @@ -456,6 +456,11 @@ context: cloudStack.context }); }); + + window._reloadUI = function() { + $('#container').html(''); + $('#container').cloudStack(window.cloudStack); + }; } };