aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-01 00:16:39 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-01 00:16:39 +0200
commit50d9b2934742ad9fb0dc8354d405789e3c14cd00 (patch)
treea3dc02d0d7430078b0d6cfe8cb816d6ed63e233a /view/js/main.js
parent90a5ba01a35aeb3629ebe76069e68c64b913a4d5 (diff)
downloadvolse-hubzilla-50d9b2934742ad9fb0dc8354d405789e3c14cd00.tar.gz
volse-hubzilla-50d9b2934742ad9fb0dc8354d405789e3c14cd00.tar.bz2
volse-hubzilla-50d9b2934742ad9fb0dc8354d405789e3c14cd00.zip
slightly change the way fullscreen works and bring it to mod mail
Diffstat (limited to 'view/js/main.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');
}
}