attachment preview non dragable
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user