|
|
@ -413,7 +413,7 @@ MessengerUI, Messages) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
show();
|
|
|
|
show();
|
|
|
|
Common.getAttribute(['toolbar', 'userlist-drawer'], function (err, val) {
|
|
|
|
Common.getAttribute(['toolbar', 'userlist-drawer'], function (err, val) {
|
|
|
|
if (val === false || ($(window).height() < 800 && $(window).width() < 800)) {
|
|
|
|
if (val === false || Util.isSmallScreen()) {
|
|
|
|
return void hide();
|
|
|
|
return void hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
show();
|
|
|
|
show();
|
|
|
@ -457,7 +457,11 @@ MessengerUI, Messages) {
|
|
|
|
config.$contentContainer.prepend($content);
|
|
|
|
config.$contentContainer.prepend($content);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var hide = function () {
|
|
|
|
var hide = function (closed) {
|
|
|
|
|
|
|
|
if (!closed) {
|
|
|
|
|
|
|
|
// It means it's the initial state so we're going to make the icon blink
|
|
|
|
|
|
|
|
$button.addClass('cp-toolbar-notification');
|
|
|
|
|
|
|
|
}
|
|
|
|
$content.hide();
|
|
|
|
$content.hide();
|
|
|
|
$button.removeClass('cp-toolbar-button-active');
|
|
|
|
$button.removeClass('cp-toolbar-button-active');
|
|
|
|
config.$contentContainer.removeClass('cp-chat-visible');
|
|
|
|
config.$contentContainer.removeClass('cp-chat-visible');
|
|
|
@ -482,8 +486,8 @@ MessengerUI, Messages) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
show();
|
|
|
|
show();
|
|
|
|
Common.getAttribute(['toolbar', 'chat-drawer'], function (err, val) {
|
|
|
|
Common.getAttribute(['toolbar', 'chat-drawer'], function (err, val) {
|
|
|
|
if (val === false || ($(window).height() < 800 || $(window).width() < 800)) {
|
|
|
|
if (!val || Util.isSmallScreen()) {
|
|
|
|
return void hide();
|
|
|
|
return void hide(val === false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
show();
|
|
|
|
show();
|
|
|
|
});
|
|
|
|
});
|
|
|
|