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