call hooks for show document and folder row

This commit is contained in:
Uwe Steinmann 2025-03-18 09:57:45 +01:00
parent 757e95ab86
commit 9b2c120b5f

View File

@ -161,7 +161,11 @@ $(document).ready( function() {
foreach($res['docs'] as $document) {
$extracontent = array();
$extracontent['below_title'] = $this->getListRowPath($document);
echo $this->documentListRow($document, $previewer, false, 0, $extracontent);
$txt = $this->callHook('documentListItem', $document, $previewer, false, 'attributemgr', $extracontent);
if(is_string($txt))
echo $txt;
else
echo $this->documentListRow($document, $previewer, false, 0, $extracontent);
}
echo "</tbody>\n</table>\n";
@ -176,10 +180,14 @@ $(document).ready( function() {
print "<th>".getMLText("action")."</th>\n";
print "</tr>\n</thead>\n<tbody>\n";
foreach($res['contents'] as $content) {
$doc = $content->getDocument();
$document = $content->getDocument();
$extracontent = array();
$extracontent['below_title'] = $this->getListRowPath($doc);
echo $this->documentListRow($doc, $previewer, false, 0, $extracontent);
$txt = $this->callHook('documentListItem', $document, $previewer, false, 'attributemgr', $extracontent);
if(is_string($txt))
echo $txt;
else
echo $this->documentListRow($document, $previewer, false, 0, $extracontent);
}
print "</tbody></table>";
}