This commit is contained in:
wangyidong
2023-12-14 17:02:12 +08:00
parent 079aadeb8a
commit cb286194ea
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ window.rendDocCell = function(result, {col, row})
const docIcon = `<img src='static/svg/${docType}.svg' class='file-icon mr-1'>`;
if(canViewDoc)
{
docNameHtml += `<a class="doc-name flex" href="` + $.createLink('doc', 'view', 'docID=' + row.data.id) + '">' + docIcon + ' ' + row.data.title + '</a>';
docNameHtml += `<a class="doc-name flex" data-app="${currentTab}" href="` + $.createLink('doc', 'view', 'docID=' + row.data.id) + '">' + docIcon + ' ' + row.data.title + '</a>';
}
else
{
+1
View File
@@ -15,6 +15,7 @@ jsVar('draftText', $lang->doc->draft);
jsVar('canViewDoc', common::hasPriv('doc', 'view'));
jsVar('canCollect', common::hasPriv('doc', 'collect') && $libType && $libType != 'api');
jsVar('currentAccount', $app->user->account);
jsVar('currentTab', $app->tab);
$cols = array();
foreach($config->doc->dtable->fieldList as $colName => $col)