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.
This commit is contained in:
Brian Federle 2013-03-22 10:29:48 -07:00
parent e86f81152f
commit abbc3b3bc6

View File

@ -456,6 +456,11 @@
context: cloudStack.context
});
});
window._reloadUI = function() {
$('#container').html('');
$('#container').cloudStack(window.cloudStack);
};
}
};