slightly change the way fullscreen works and bring it to mod mail

This commit is contained in:
Mario Vavti
2016-04-01 00:16:39 +02:00
parent 90a5ba01a3
commit 50d9b29347
5 changed files with 26 additions and 14 deletions

View File

@@ -1454,13 +1454,15 @@ function zid(s) {
function makeFullScreen(full) {
if(typeof full=='undefined' || full == true) {
$('#fullscreen, aside').hide();
$('#inline').show();
$('#fullscreen-btn, header, nav, aside').hide();
$('main').css({'width': '100%', 'max-width': 'none'});
$('#inline-btn').show();
$('.generic-content-wrapper').addClass('fullscreen');
}
else {
$('#fullscreen, aside').show();
$('#inline').hide();
$('#fullscreen-btn, header, nav, aside').show();
$('main').removeAttr('style');
$('#inline-btn').hide();
$('.generic-content-wrapper').removeClass('fullscreen');
}
}