From a86d5aad5f5597e0ad7c88463ae5138845c6f1e8 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 25 Apr 2011 20:03:07 -0700 Subject: [PATCH] fix image expansion on updated posts --- 4chan_x.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index fe2f89173..a5ed0ea0b 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1872,7 +1872,7 @@ for (_i = 0, _len = _ref2.length; _i < _len; _i++) { thumb = _ref2[_i]; $.bind(thumb.parentNode, 'click', imgExpand.cb.toggle); - _results.push(imgExpand.on ? imgExpand.expand(thumb.parentNode) : void 0); + _results.push(imgExpand.on ? imgExpand.toggle(thumb) : void 0); } return _results; }, diff --git a/script.coffee b/script.coffee index 17c68951b..acd31ce74 100644 --- a/script.coffee +++ b/script.coffee @@ -1426,7 +1426,7 @@ imgExpand = node: (root) -> for thumb in $$ 'img[md5]', root $.bind thumb.parentNode, 'click', imgExpand.cb.toggle - if imgExpand.on then imgExpand.expand thumb.parentNode + if imgExpand.on then imgExpand.toggle thumb toggle: (e) -> return if e.shiftKey or e.altKey or e.ctrlKey or e.button isnt 0 e.preventDefault()