fix error when quoted post doesn't exist
This commit is contained in:
parent
3c1ca5c302
commit
e4b65e6dad
@ -1843,7 +1843,11 @@
|
|||||||
return _results;
|
return _results;
|
||||||
},
|
},
|
||||||
mouseout: function() {
|
mouseout: function() {
|
||||||
return $.removeClass(d.getElementById(this.hash.slice(1)), 'qphl');
|
var el;
|
||||||
|
if (!(el = d.getElementById(this.hash.slice(1)))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
return $.removeClass(el, 'qphl');
|
||||||
},
|
},
|
||||||
mouseover: function(e) {
|
mouseover: function(e) {
|
||||||
var el, id, qp, quote, replyID, req, threadID, _i, _len, _ref;
|
var el, id, qp, quote, replyID, req, threadID, _i, _len, _ref;
|
||||||
|
|||||||
@ -1465,7 +1465,8 @@ quotePreview =
|
|||||||
$.bind quote, 'mouseout', ui.hoverend
|
$.bind quote, 'mouseout', ui.hoverend
|
||||||
$.bind quote, 'mouseout', quotePreview.mouseout
|
$.bind quote, 'mouseout', quotePreview.mouseout
|
||||||
mouseout: ->
|
mouseout: ->
|
||||||
$.removeClass d.getElementById(@hash[1..]), 'qphl'
|
return unless el = d.getElementById @hash[1..]
|
||||||
|
$.removeClass el, 'qphl'
|
||||||
mouseover: (e) ->
|
mouseover: (e) ->
|
||||||
return unless id = @hash[1..]
|
return unless id = @hash[1..]
|
||||||
qp = $ '#qp'
|
qp = $ '#qp'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user