diff --git a/4chan_x.user.js b/4chan_x.user.js index 21227f49e..1258d4169 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2013,7 +2013,6 @@ $.bind(link, 'mouseover', quotePreview.mouseover); $.bind(link, 'mousemove', ui.hover); $.bind(link, 'mouseout', quotePreview.mouseout); - $.bind(link, 'mouseout', ui.hoverend); } if (quoteBacklink.qi) { $.bind(link, 'click', quoteInline.toggle); @@ -2146,8 +2145,7 @@ } $.bind(quote, 'mouseover', quotePreview.mouseover); $.bind(quote, 'mousemove', ui.hover); - $.bind(quote, 'mouseout', quotePreview.mouseout); - _results.push($.bind(quote, 'mouseout', ui.hoverend)); + _results.push($.bind(quote, 'mouseout', quotePreview.mouseout)); } return _results; }); @@ -2186,8 +2184,9 @@ mouseout: function() { var el; if (el = d.getElementById(this.hash.slice(1))) { - return $.removeClass(el, 'qphl'); + $.removeClass(el, 'qphl'); } + return ui.hoverend(); }, parse: function(req, id, threadID) { var body, html, op, qp, reply, _i, _len, _ref; diff --git a/script.coffee b/script.coffee index c7c4a102a..e77d4ea32 100644 --- a/script.coffee +++ b/script.coffee @@ -1588,7 +1588,6 @@ quoteBacklink = $.bind link, 'mouseover', quotePreview.mouseover $.bind link, 'mousemove', ui.hover $.bind link, 'mouseout', quotePreview.mouseout - $.bind link, 'mouseout', ui.hoverend if quoteBacklink.qi $.bind link, 'click', quoteInline.toggle unless container = $ '.container', el @@ -1670,7 +1669,6 @@ quotePreview = $.bind quote, 'mouseover', quotePreview.mouseover $.bind quote, 'mousemove', ui.hover $.bind quote, 'mouseout', quotePreview.mouseout - $.bind quote, 'mouseout', ui.hoverend mouseover: (e) -> qp = ui.el = $.el 'div', id: 'qp' @@ -1692,6 +1690,7 @@ quotePreview = $.cache @pathname, (-> quotePreview.parse @, id, threadID) mouseout: -> $.removeClass el, 'qphl' if el = d.getElementById @hash[1..] + ui.hoverend() parse: (req, id, threadID) -> return unless (qp = ui.el) and (qp.innerHTML is "Loading #{id}...")