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); }