mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 22:29:55 +09:00
dropZone이 정의되지 않아 발생하는 스크립트 오류 수정.
This commit is contained in:
parent
b2ad30b25e
commit
29fc2138a0
1 changed files with 6 additions and 5 deletions
|
|
@ -155,9 +155,10 @@
|
|||
});
|
||||
|
||||
$(document).bind('dragover', function (e) {
|
||||
var timeout = window.dropZoneTimeout;
|
||||
var timeout = window.dropZoneTimeout,
|
||||
dropZone = self.settings.dropZone;
|
||||
if (!timeout) {
|
||||
self.settings.dropZone.addClass('in');
|
||||
dropZone.addClass('in');
|
||||
} else {
|
||||
clearTimeout(timeout);
|
||||
}
|
||||
|
|
@ -171,13 +172,13 @@
|
|||
node = node.parentNode;
|
||||
} while (node != null);
|
||||
if (found) {
|
||||
self.settings.dropZone.addClass('hover');
|
||||
dropZone.addClass('hover');
|
||||
} else {
|
||||
self.settings.dropZone.removeClass('hover');
|
||||
dropZone.removeClass('hover');
|
||||
}
|
||||
window.dropZoneTimeout = setTimeout(function () {
|
||||
window.dropZoneTimeout = null;
|
||||
self.settings.dropZone.removeClass('in hover');
|
||||
dropZone.removeClass('in hover');
|
||||
}, 100);
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue