mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
call hooks for show document and folder row
This commit is contained in:
parent
757e95ab86
commit
9b2c120b5f
|
@ -161,6 +161,10 @@ $(document).ready( function() {
|
||||||
foreach($res['docs'] as $document) {
|
foreach($res['docs'] as $document) {
|
||||||
$extracontent = array();
|
$extracontent = array();
|
||||||
$extracontent['below_title'] = $this->getListRowPath($document);
|
$extracontent['below_title'] = $this->getListRowPath($document);
|
||||||
|
$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 $this->documentListRow($document, $previewer, false, 0, $extracontent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,10 +180,14 @@ $(document).ready( function() {
|
||||||
print "<th>".getMLText("action")."</th>\n";
|
print "<th>".getMLText("action")."</th>\n";
|
||||||
print "</tr>\n</thead>\n<tbody>\n";
|
print "</tr>\n</thead>\n<tbody>\n";
|
||||||
foreach($res['contents'] as $content) {
|
foreach($res['contents'] as $content) {
|
||||||
$doc = $content->getDocument();
|
$document = $content->getDocument();
|
||||||
$extracontent = array();
|
$extracontent = array();
|
||||||
$extracontent['below_title'] = $this->getListRowPath($doc);
|
$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>";
|
print "</tbody></table>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user