[ADD] client action to reload the interface (useful for refreshing the menus and current view)
bzr revid: rco@openerp.com-20120503081732-ry9nj048tlh464z7
This commit is contained in:
@@ -1318,6 +1318,18 @@ instance.web.str_to_xml = function(s) {
|
||||
*/
|
||||
instance.web.client_actions = new instance.web.Registry();
|
||||
|
||||
/**
|
||||
* Client action to reload the whole interface; refreshes the menu and reloads the current view
|
||||
*/
|
||||
instance.web.client_actions.add("reload_all", "instance.web.ReloadAll");
|
||||
|
||||
instance.web.ReloadAll = instance.web.Widget.extend({
|
||||
template: "EmptyComponent",
|
||||
start: function() {
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Registry for all the main views
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user