use post ID for jsmath event

This commit is contained in:
ccd0 2014-06-18 02:11:27 -07:00
parent 5ad30ead3f
commit f17dfcc180

View File

@ -21,7 +21,7 @@ Fourchan =
if (!jsMath) return; if (!jsMath) return;
if (jsMath.loaded) { if (jsMath.loaded) {
// process one post // process one post
jsMath.ProcessBeforeShowing(e.detail); jsMath.ProcessBeforeShowing(document.getElementById('p' + e.detail));
} else if (jsMath.Autoload && jsMath.Autoload.checked) { } else if (jsMath.Autoload && jsMath.Autoload.checked) {
// load jsMath and process whole document // load jsMath and process whole document
jsMath.Autoload.Script.Push('ProcessBeforeShowing', [null]); jsMath.Autoload.Script.Push('ProcessBeforeShowing', [null]);
@ -43,7 +43,7 @@ Fourchan =
math: -> math: ->
return if (@isClone and doc.contains @origin.nodes.root) or !$ '.math', @nodes.comment return if (@isClone and doc.contains @origin.nodes.root) or !$ '.math', @nodes.comment
$.asap (=> doc.contains @nodes.post), => $.asap (=> doc.contains @nodes.post), =>
$.event 'jsmath', @nodes.post, window $.event 'jsmath', @ID, window
parseThread: (threadID, offset, limit) -> parseThread: (threadID, offset, limit) ->
# Fix /sci/ # Fix /sci/
# Fix /g/ # Fix /g/