Prevent error.
This commit is contained in:
parent
18cbff6b3d
commit
edba56a711
@ -1528,8 +1528,9 @@
|
||||
};
|
||||
|
||||
_Class.prototype.dragEnd = function() {
|
||||
var el;
|
||||
$.removeClass(this, 'drag');
|
||||
return $.removeClass($('.over', this.parentNode), 'over');
|
||||
if (el = $('.over', this.parentNode)) return $.removeClass(el, 'over');
|
||||
};
|
||||
|
||||
_Class.prototype.rm = function() {
|
||||
|
||||
@ -1143,7 +1143,8 @@ qr =
|
||||
qr.replies.splice newIndex, 0, reply
|
||||
dragEnd: ->
|
||||
$.removeClass @, 'drag'
|
||||
$.removeClass $('.over', @parentNode), 'over'
|
||||
if el = $ '.over', @parentNode
|
||||
$.removeClass el, 'over'
|
||||
rm: ->
|
||||
qr.resetFileInput()
|
||||
$.rm @el
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user