attachment-multiple link

This commit is contained in:
Yuri Kuznetsov
2022-09-12 11:20:48 +03:00
parent 8b83fa640f
commit b2d3d56a85
2 changed files with 5 additions and 9 deletions
@@ -343,7 +343,7 @@ function (Dep, FileUpload) {
getEditPreview: function (name, type, id) {
if (!~this.previewTypeList.indexOf(type)) {
return name;
return null;
}
return $('<img>')
@@ -368,11 +368,9 @@ function (Dep, FileUpload) {
if (this.showPreviews) {
let html = this.getEditPreview(name, type, id);
if (!html) {
return $text.get(0).outerHTML;
if (html) {
return html;
}
return html;
}
let url = this.getBasePath() + '?entryPoint=download&id=' + id;
+2 -4
View File
@@ -627,11 +627,9 @@ define('views/fields/file', ['views/fields/link', 'helpers/file-upload'], functi
if (this.showPreview) {
let html = this.getEditPreview(name, type, id);
if (!html) {
return $text.get(0).outerHTML;
if (html) {
return html;
}
return html;
}
let url = this.getBasePath() + '?entryPoint=download&id=' + id;