From 691f8c69d41b8c4b97ff75581767e30f05971b92 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 23 Sep 2011 16:50:11 +0200 Subject: [PATCH] Expand, don't go through toggle. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 62653deeb..26a1e433d 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2655,7 +2655,7 @@ a = thumb.parentNode; $.bind(a, 'click', imgExpand.cb.toggle); if (imgExpand.on && root.className !== 'inline') { - return imgExpand.toggle(a); + return imgExpand.expand(a.firstChild); } }, cb: { diff --git a/script.coffee b/script.coffee index a30796844..c1615a1c4 100644 --- a/script.coffee +++ b/script.coffee @@ -1973,7 +1973,7 @@ imgExpand = return unless thumb = $ 'img[md5]', root a = thumb.parentNode $.bind a, 'click', imgExpand.cb.toggle - if imgExpand.on and root.className isnt 'inline' then imgExpand.toggle a + if imgExpand.on and root.className isnt 'inline' then imgExpand.expand a.firstChild cb: toggle: (e) -> return if e.shiftKey or e.altKey or e.ctrlKey or e.button isnt 0