Remove X button in chat and userlist panels

pull/1/head
yflory 5 years ago
parent 7bf7731803
commit c9a0eef5f1

@ -402,7 +402,7 @@ MessengerUI, Messages) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
}); });
var $closeIcon = $('<span>', {"class": "fa fa-times cp-toolbar-userlist-drawer-close"}).appendTo($content); //var $closeIcon = $('<span>', {"class": "fa fa-times cp-toolbar-userlist-drawer-close"}).appendTo($content);
$('<h2>').text(Messages.users).appendTo($content); $('<h2>').text(Messages.users).appendTo($content);
$('<p>', {'class': USERLIST_CLS}).appendTo($content); $('<p>', {'class': USERLIST_CLS}).appendTo($content);
@ -428,10 +428,12 @@ MessengerUI, Messages) {
$content.show(); $content.show();
$button.addClass('cp-toolbar-button-active'); $button.addClass('cp-toolbar-button-active');
}; };
/*
$closeIcon.click(function () { $closeIcon.click(function () {
Common.setAttribute(['toolbar', 'userlist-drawer'], false); Common.setAttribute(['toolbar', 'userlist-drawer'], false);
hide(); hide();
}); });
*/
$button.click(function () { $button.click(function () {
var visible = $content.is(':visible'); var visible = $content.is(':visible');
if (visible) { hide(); } if (visible) { hide(); }
@ -469,7 +471,7 @@ MessengerUI, Messages) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
}); });
var $closeIcon = $('<span>', {"class": "fa fa-times cp-toolbar-chat-drawer-close"}).appendTo($content); //var $closeIcon = $('<span>', {"class": "fa fa-times cp-toolbar-chat-drawer-close"}).appendTo($content);
//$('<h2>').text(Messages.users).appendTo($content); //$('<h2>').text(Messages.users).appendTo($content);
//$('<p>', {'class': USERLIST_CLS}).appendTo($content); //$('<p>', {'class': USERLIST_CLS}).appendTo($content);
@ -510,10 +512,12 @@ MessengerUI, Messages) {
config.$contentContainer.addClass('cp-chat-visible'); config.$contentContainer.addClass('cp-chat-visible');
$button.removeClass('cp-toolbar-notification'); $button.removeClass('cp-toolbar-notification');
}; };
/*
$closeIcon.click(function () { $closeIcon.click(function () {
Common.setAttribute(['toolbar', 'chat-drawer'], false); Common.setAttribute(['toolbar', 'chat-drawer'], false);
hide(true); hide(true);
}); });
*/
$button.click(function () { $button.click(function () {
var visible = $content.is(':visible'); var visible = $content.is(':visible');
if (visible) { hide(true); } if (visible) { hide(true); }

Loading…
Cancel
Save