make fullscreen mode available for other modules and some cleanup

This commit is contained in:
Mario Vavti
2016-03-31 23:13:40 +02:00
parent 6c2673ae2a
commit 90a5ba01a3
4 changed files with 62 additions and 54 deletions

View File

@@ -1451,3 +1451,16 @@ function zid(s) {
return s;
}
function makeFullScreen(full) {
if(typeof full=='undefined' || full == true) {
$('#fullscreen, aside').hide();
$('#inline').show();
$('.generic-content-wrapper').addClass('fullscreen');
}
else {
$('#fullscreen, aside').show();
$('#inline').hide();
$('.generic-content-wrapper').removeClass('fullscreen');
}
}