mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-02-01 17:49:58 +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) {
|
$(document).bind('dragover', function (e) {
|
||||||
var timeout = window.dropZoneTimeout;
|
var timeout = window.dropZoneTimeout,
|
||||||
|
dropZone = self.settings.dropZone;
|
||||||
if (!timeout) {
|
if (!timeout) {
|
||||||
self.settings.dropZone.addClass('in');
|
dropZone.addClass('in');
|
||||||
} else {
|
} else {
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
}
|
}
|
||||||
|
|
@ -171,13 +172,13 @@
|
||||||
node = node.parentNode;
|
node = node.parentNode;
|
||||||
} while (node != null);
|
} while (node != null);
|
||||||
if (found) {
|
if (found) {
|
||||||
self.settings.dropZone.addClass('hover');
|
dropZone.addClass('hover');
|
||||||
} else {
|
} else {
|
||||||
self.settings.dropZone.removeClass('hover');
|
dropZone.removeClass('hover');
|
||||||
}
|
}
|
||||||
window.dropZoneTimeout = setTimeout(function () {
|
window.dropZoneTimeout = setTimeout(function () {
|
||||||
window.dropZoneTimeout = null;
|
window.dropZoneTimeout = null;
|
||||||
self.settings.dropZone.removeClass('in hover');
|
dropZone.removeClass('in hover');
|
||||||
}, 100);
|
}, 100);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue