SAAS-1101 - add workaround for pages obstructed by livechat box
This commit is contained in:
parent
c0372c1745
commit
98d565ff3d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue