From 0e580a04d85fd52f7f56c4cd4f419c7dbbab3bc5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 7 Apr 2012 15:30:37 +0900 Subject: [PATCH] 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. --- aqt/editor.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/aqt/editor.py b/aqt/editor.py index 1de8934ea..42f346dcc 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -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(); - } -});
%s