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');
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue