cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ni...@apache.org
Subject [09/50] [abbrv] git commit: updated refs/heads/scaleupvm to 2423d4a
Date Thu, 28 Mar 2013 11:16:19 GMT
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 <brian.federle@citrix.com>
Authored: Fri Mar 22 10:29:48 2013 -0700
Committer: Brian Federle <brian.federle@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);
+        };
       }
     };
 		


Mime
View raw message