SAAS-1101 - add workaround for pages obstructed by livechat box

This commit is contained in:
Duncan Sommerville 2015-09-30 14:24:21 -04:00
parent c0372c1745
commit 98d565ff3d
1 changed files with 2 additions and 5 deletions

View File

@ -22,11 +22,8 @@ $(document).ready(function() {
var ifr = document.getElementById('livechat-compact-container'); var ifr = document.getElementById('livechat-compact-container');
if (ifr) { if (ifr) {
LC_API.on_chat_state_changed = function(data) { LC_API.on_chat_state_changed = function(data) {
if (data.state == 'offline') { // Hacky... select elements on pages that have different layouts separately
$('body > .wrapper').css('padding-bottom', 10); $('body > .wrapper, #stream_form > div, #his-tabs').css('padding-bottom', (data.state == 'offline') ? 10 : 40);
} else {
$('body > .wrapper').css('padding-bottom', 40);
}
}; };
clearInterval(lcLoadListener); clearInterval(lcLoadListener);
} }