From 98d565ff3d4dc45fbdf446030b65737a301beb28 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Wed, 30 Sep 2015 14:24:21 -0400 Subject: [PATCH] SAAS-1101 - add workaround for pages obstructed by livechat box --- airtime_mvc/public/js/airtime/common/livechat.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/airtime_mvc/public/js/airtime/common/livechat.js b/airtime_mvc/public/js/airtime/common/livechat.js index 5d1fc9522..a5a0cd462 100644 --- a/airtime_mvc/public/js/airtime/common/livechat.js +++ b/airtime_mvc/public/js/airtime/common/livechat.js @@ -22,11 +22,8 @@ $(document).ready(function() { var ifr = document.getElementById('livechat-compact-container'); if (ifr) { LC_API.on_chat_state_changed = function(data) { - if (data.state == 'offline') { - $('body > .wrapper').css('padding-bottom', 10); - } else { - $('body > .wrapper').css('padding-bottom', 40); - } + // Hacky... select elements on pages that have different layouts separately + $('body > .wrapper, #stream_form > div, #his-tabs').css('padding-bottom', (data.state == 'offline') ? 10 : 40); }; clearInterval(lcLoadListener); }