Added formatter back

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2025-07-30 15:19:10 +01:00
parent 08530e6133
commit 80b48101aa

View File

@@ -953,6 +953,13 @@
}
function fileUploadFormatter(value) {
if ((value) && (value.url) && (value.inlineable)) {
return '<a href="' + value.url + '" data-toggle="lightbox" data-type="image"><img src="' + value.url + '" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;" class="img-responsive" alt=""></a>';
} else if ((value) && (value.url)) {
return '<a href="' + value.url + '" class="btn btn-default"><x-icon type="download" /></a>';
}
}
// This is used in the table listings