[IMP] minor improvement to the fullscreen mode

bzr revid: nicolas.vanhoren@openerp.com-20120726100111-c2y5x9viawnhryrd
This commit is contained in:
niv-openerp 2012-07-26 12:01:11 +02:00
commit 19a41bd97a
1 changed files with 5 additions and 2 deletions

View File

@ -1094,10 +1094,13 @@ instance.web.WebClient = instance.web.Client.extend({
}
},
set_content_full_screen: function(fullscreen) {
if (fullscreen)
if (fullscreen) {
$(".oe_webclient", this.$element).addClass("oe_content_full_screen");
else
$("body").css({'overflow-y':'hidden'});
} else {
$(".oe_webclient", this.$element).removeClass("oe_content_full_screen");
$("body").css({'overflow-y':'scroll'});
}
}
});