From 58c9be12ffb0afc5e1fb2275469debcf137d1358 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Tue, 25 Feb 2025 15:16:53 +0800 Subject: [PATCH] * [bug#60041,done,0.5h] preview in modal. --- lib/zin/wg/history/v1.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/zin/wg/history/v1.php b/lib/zin/wg/history/v1.php index 5af98c8371..62278c3c5a 100644 --- a/lib/zin/wg/history/v1.php +++ b/lib/zin/wg/history/v1.php @@ -135,10 +135,11 @@ class history extends wg if(canPreview) { let previewAction = {icon: 'eye', title: previewLang, url: previewLink.replace('{id}', file.id).replace('\\', ''), className: 'text-primary', target: '_blank'}; - if(isOfficeFile) + if(!isOfficeFile) { previewAction['data-toggle'] = 'modal'; previewAction['data-size'] = 'lg'; + delete previewAction.target; } fileActions.push(previewAction); }