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