mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
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
This commit is contained in:
parent
e367d04a08
commit
dd4bae6e8d
1 changed files with 2 additions and 0 deletions
|
@ -130,6 +130,8 @@ function _updateQA (q, answerMode, klass) {
|
||||||
if (klass) {
|
if (klass) {
|
||||||
document.body.className = klass;
|
document.body.className = klass;
|
||||||
}
|
}
|
||||||
|
// don't allow drags of images, which cause them to be deleted
|
||||||
|
$("img").attr("draggable", false);
|
||||||
};
|
};
|
||||||
|
|
||||||
function _toggleStar (show) {
|
function _toggleStar (show) {
|
||||||
|
|
Loading…
Reference in a new issue