mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +09:00
Merge pull request #1515 from upgle/fix-script-error
파일 업로드의 드래그&드롭 영역 스크립트 오류 수정 (Fix script error
This commit is contained in:
commit
a5d3267419
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