aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/view/js/main.js b/view/js/main.js
index d6d1238d4..4e99bf1aa 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -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');
}
}