Fix toolbar collapse button

pull/1/head
David Benqué 3 years ago
parent d05f03c8c6
commit ddee1e9b40

@ -474,7 +474,6 @@ MessengerUI, Messages, Pages) {
$button.click(function () { $button.click(function () {
toolbar.$top.toggleClass('toolbar-hidden'); toolbar.$top.toggleClass('toolbar-hidden');
var hidden = toolbar.$top.hasClass('toolbar-hidden'); var hidden = toolbar.$top.hasClass('toolbar-hidden');
$button.attr('title', Messages[(hidden ? 'ui_expand': 'ui_collapse')]);
$button.toggleClass('cp-toolbar-button-active'); $button.toggleClass('cp-toolbar-button-active');
if (hidden) { if (hidden) {
$up.hide(); $up.hide();

Loading…
Cancel
Save