From 16cccee5a08aa266e1de71d7248b74c58d85cc1d Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 29 Dec 2011 04:54:02 +0100 Subject: [PATCH] Auto-hide fixes. --- 4chan_x.user.js | 11 +++++++++-- script.coffee | 10 ++++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index dcee79f44..4e0d951a7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1200,7 +1200,7 @@ }); if (conf['Persistent QR']) { qr.dialog(); - return $.id('autohide').click(); + if (conf['Auto Hide QR']) return $.id('autohide').click(); } }, open: function() { @@ -1215,7 +1215,11 @@ } }, hide: function() { - return qr.el.lastChild.hidden = this.checked; + if (this.checked) { + return $.addClass(qr.el, 'autohide'); + } else { + return $.removeClass(qr.el, 'autohide'); + } }, close: function() { return qr.el.hidden = true; @@ -1241,6 +1245,9 @@ var input, _i, _len, _ref; qr.el = ui.dialog('qr', 'top:0;right:0;', '\