mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-28 18:40:39 +00:00
add calling hook documentClipboardItem
This commit is contained in:
parent
79afdc7c55
commit
0f7df48c98
|
|
@ -1123,6 +1123,10 @@ $(function() {
|
|||
//echo "<tr><th colspan=\"3\">Documents</th></tr>\n";
|
||||
foreach($clipboard['docs'] as $docid) {
|
||||
if($document = $dms->getDocument($docid)) {
|
||||
$txt = $this->callHook('documentClipboardItem', $document, $previewer);
|
||||
if(is_string($txt))
|
||||
echo $txt;
|
||||
else {
|
||||
$comment = $document->getComment();
|
||||
if (strlen($comment) > 150) $comment = substr($comment, 0, 147) . "...";
|
||||
if($latestContent = $document->getLatestContent()) {
|
||||
|
|
@ -1156,6 +1160,7 @@ $(function() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
print "</table>";
|
||||
}
|
||||
echo "</div>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user