From dd4bae6e8d68b531227d09434279a6d9c969252b Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 17 May 2013 15:01:01 +0900 Subject: [PATCH] disable dragging of images in review window (#420) webkit's default behaviour is to remove them from the media folder otherwise, which we don't want --- aqt/reviewer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aqt/reviewer.py b/aqt/reviewer.py index 0a497e5db..576f7e1e9 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -130,6 +130,8 @@ function _updateQA (q, answerMode, klass) { if (klass) { document.body.className = klass; } + // don't allow drags of images, which cause them to be deleted + $("img").attr("draggable", false); }; function _toggleStar (show) {