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