attachment preview non dragable

This commit is contained in:
Yuri Kuznetsov
2022-01-13 12:57:39 +02:00
parent ad61b457d8
commit eff2a022bf
2 changed files with 2 additions and 0 deletions
@@ -355,6 +355,7 @@ define('views/fields/attachment-multiple', 'views/fields/base', function (Dep) {
let html = $('<img>')
.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],
+1
View File
@@ -355,6 +355,7 @@ define('views/fields/file', 'views/fields/link', function (Dep) {
let html = $('<img>')
.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],