From 60bb8f25f7bd1e857f8e70769b83f9c75521db29 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 1 Apr 2016 08:56:51 +0200 Subject: move fullscreen js code to redbasic.js where it belongs to --- view/js/main.js | 15 --------------- view/theme/redbasic/js/redbasic.js | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/view/js/main.js b/view/js/main.js index 4e99bf1aa..04b317914 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1451,18 +1451,3 @@ function zid(s) { return s; } - -function makeFullScreen(full) { - if(typeof full=='undefined' || full == true) { - $('#fullscreen-btn, header, nav, aside').hide(); - $('main').css({'width': '100%', 'max-width': 'none'}); - $('#inline-btn').show(); - $('.generic-content-wrapper').addClass('fullscreen'); - } - else { - $('#fullscreen-btn, header, nav, aside').show(); - $('main').removeAttr('style'); - $('#inline-btn').hide(); - $('.generic-content-wrapper').removeClass('fullscreen'); - } -} diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index a4e13b8eb..21b51af36 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -52,3 +52,18 @@ $(document).ready(function() { } setInterval(function () {checkNotify();}, 10 * 1000); }); + +function makeFullScreen(full) { + if(typeof full=='undefined' || full == true) { + $('#fullscreen-btn, header, nav, aside').hide(); + $('main').css({'width': '100%', 'max-width': 'none', 'left': '0px'}); + $('#inline-btn').show(); + $('.generic-content-wrapper').addClass('fullscreen'); + } + else { + $('#fullscreen-btn, header, nav, aside').show(); + $('main').removeAttr('style'); + $('#inline-btn').hide(); + $('.generic-content-wrapper').removeClass('fullscreen'); + } +} -- cgit v1.2.3