You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2013/03/23 15:58:33 UTC
[4/9] git commit: refs/heads/bvt - UI: Add _reloadUI helper function
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/bvt
Commit: abbc3b3bc63c44730f9876698f04c069c79d3272
Parents: e86f811
Author: Brian Federle <br...@citrix.com>
Authored: Fri Mar 22 10:29:48 2013 -0700
Committer: Brian Federle <br...@citrix.com>
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);
+ };
}
};