diff --git a/www/common/toolbar2.js b/www/common/toolbar2.js index 1347518df..050601e2f 100644 --- a/www/common/toolbar2.js +++ b/www/common/toolbar2.js @@ -348,7 +348,10 @@ define([ var h = $ck.is(':visible') ? -$ck.height() : 0; $content.css('margin-top', h+'px'); }); - $closeIcon.click(hide); + $closeIcon.click(function () { + Cryptpad.setAttribute('userlist-drawer', false); + hide(); + }); $button.click(function () { var visible = $content.is(':visible'); if (visible) { hide(); } @@ -358,7 +361,6 @@ define([ Cryptpad.feedback(visible?'USERLIST_SHOW': 'USERLIST_HIDE'); }); - Cryptpad.getAttribute('userlist-drawer', function (err, val) { if (val === false || mobile) { return void hide(); } show();