From f17dfcc18080752deb5490120afb0c5f61931fba Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 18 Jun 2014 02:11:27 -0700 Subject: [PATCH] use post ID for jsmath event --- src/Miscellaneous/Fourchan.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Miscellaneous/Fourchan.coffee b/src/Miscellaneous/Fourchan.coffee index aaf1317ff..982ec45d7 100755 --- a/src/Miscellaneous/Fourchan.coffee +++ b/src/Miscellaneous/Fourchan.coffee @@ -21,7 +21,7 @@ Fourchan = if (!jsMath) return; if (jsMath.loaded) { // process one post - jsMath.ProcessBeforeShowing(e.detail); + jsMath.ProcessBeforeShowing(document.getElementById('p' + e.detail)); } else if (jsMath.Autoload && jsMath.Autoload.checked) { // load jsMath and process whole document jsMath.Autoload.Script.Push('ProcessBeforeShowing', [null]); @@ -43,7 +43,7 @@ Fourchan = math: -> return if (@isClone and doc.contains @origin.nodes.root) or !$ '.math', @nodes.comment $.asap (=> doc.contains @nodes.post), => - $.event 'jsmath', @nodes.post, window + $.event 'jsmath', @ID, window parseThread: (threadID, offset, limit) -> # Fix /sci/ # Fix /g/