remove buggy ondragover handler

It was originally added to prevent text from being dropped outside the
editable areas, but I'm no longer able to reproduce the original problem.
This commit is contained in:
Damien Elmes 2012-04-07 15:30:37 +09:00
parent cc606e180e
commit 0e580a04d8

View file

@ -201,20 +201,6 @@ function showDupes() {
function hideDupes() {
$("#dupes").hide();
}
$(function () {
// ignore drops outside the editable area
document.body.ondragover = function () {
e = window.event.srcElement;
do {
if (e.contentEditable == "true") {
return;
}
e = window.parentNode;
} while (e);
window.event.preventDefault();
}
});
</script></head><body>
<div id="fields"></div>
<div id="dupes"><a href="#" onclick="py.run('dupes');return false;">%s</a></div>