add calling hook documentClipboardItem

This commit is contained in:
Uwe Steinmann 2013-07-31 21:44:02 +02:00
parent 79afdc7c55
commit 0f7df48c98

View File

@ -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";