[imp] minor feature in the web client class to set the content to full screen

bzr revid: nicolas.vanhoren@openerp.com-20120307150500-o8kkxp4ohrtzjq69
This commit is contained in:
niv-openerp 2012-03-07 16:05:00 +01:00
parent a8bf396f22
commit 8c65ef53b9
1 changed files with 6 additions and 0 deletions

View File

@ -1127,6 +1127,12 @@ openerp.web.WebClient = openerp.web.Widget.extend(/** @lends openerp.web.WebClie
self.menu.on_menu_click(null, action.menu_id);
});
}
},
set_content_full_screen: function(fullscreen) {
if (fullscreen)
this.$element.addClass("oe_content_full_screen");
else
this.$element.removeClass("oe_content_full_screen");
}
});