mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
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:
parent
cc606e180e
commit
0e580a04d8
1 changed files with 0 additions and 14 deletions
|
|
@ -201,20 +201,6 @@ function showDupes() {
|
||||||
function hideDupes() {
|
function hideDupes() {
|
||||||
$("#dupes").hide();
|
$("#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>
|
</script></head><body>
|
||||||
<div id="fields"></div>
|
<div id="fields"></div>
|
||||||
<div id="dupes"><a href="#" onclick="py.run('dupes');return false;">%s</a></div>
|
<div id="dupes"><a href="#" onclick="py.run('dupes');return false;">%s</a></div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue