From eff2a022bfb09d4f3f6bfcd3d2135ac34bf79eb8 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 13 Jan 2022 12:57:39 +0200 Subject: [PATCH] attachment preview non dragable --- client/src/views/fields/attachment-multiple.js | 1 + client/src/views/fields/file.js | 1 + 2 files changed, 2 insertions(+) diff --git a/client/src/views/fields/attachment-multiple.js b/client/src/views/fields/attachment-multiple.js index 52500a33ee..148d4ab605 100644 --- a/client/src/views/fields/attachment-multiple.js +++ b/client/src/views/fields/attachment-multiple.js @@ -355,6 +355,7 @@ define('views/fields/attachment-multiple', 'views/fields/base', function (Dep) { let html = $('') .attr('src', this.getImageUrl(id, 'small')) .attr('title', name) + .attr('draggable', false) .css({ maxWidth: (this.imageSizes[this.previewSize] || {})[0], maxHeight: (this.imageSizes[this.previewSize] || {})[1], diff --git a/client/src/views/fields/file.js b/client/src/views/fields/file.js index aed1363197..94c830b86a 100644 --- a/client/src/views/fields/file.js +++ b/client/src/views/fields/file.js @@ -355,6 +355,7 @@ define('views/fields/file', 'views/fields/link', function (Dep) { let html = $('') .attr('src', this.getImageUrl(id, 'small')) .attr('title', name) + .attr('draggable', false) .css({ maxWidth: (this.imageSizes[this.previewSize] || {})[0], maxHeight: (this.imageSizes[this.previewSize] || {})[1],