mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 13:11:31 +00:00
pass all parameters to hook documentListItem, remove old code
This commit is contained in:
parent
eefdfb676a
commit
14d2a7263b
|
@ -88,7 +88,7 @@ $(document).ready( function() {
|
||||||
$document->verifyLastestContentExpriry();
|
$document->verifyLastestContentExpriry();
|
||||||
|
|
||||||
if($document->getAccessMode($user) >= M_READ && $document->getLatestContent()) {
|
if($document->getAccessMode($user) >= M_READ && $document->getLatestContent()) {
|
||||||
$txt = $this->callHook('documentListItem', $document, $previewer);
|
$txt = $this->callHook('documentListItem', $document, $previewer, false, $res['version']);
|
||||||
if(is_string($txt))
|
if(is_string($txt))
|
||||||
echo $txt;
|
echo $txt;
|
||||||
else
|
else
|
||||||
|
@ -128,30 +128,6 @@ $(document).ready( function() {
|
||||||
$this->contentHeading(getMLText("documents_to_review"));
|
$this->contentHeading(getMLText("documents_to_review"));
|
||||||
if($resArr) {
|
if($resArr) {
|
||||||
$this->printList($resArr, $previewer, 'listReviews');
|
$this->printList($resArr, $previewer, 'listReviews');
|
||||||
/*
|
|
||||||
print "<table class=\"table table-condensed\">";
|
|
||||||
print "<thead>\n<tr>\n";
|
|
||||||
print "<th></th>\n";
|
|
||||||
print "<th>".getMLText("name")."</th>\n";
|
|
||||||
print "<th>".getMLText("status")."</th>\n";
|
|
||||||
print "<th>".getMLText("action")."</th>\n";
|
|
||||||
print "</tr>\n</thead>\n<tbody>\n";
|
|
||||||
|
|
||||||
// List the documents for which a review has been requested.
|
|
||||||
foreach ($resArr as $res) {
|
|
||||||
$document = $dms->getDocument($res["id"]);
|
|
||||||
$document->verifyLastestContentExpriry();
|
|
||||||
|
|
||||||
$txt = $this->callHook('documentListItem', $document, $previewer);
|
|
||||||
if(is_string($txt))
|
|
||||||
echo $txt;
|
|
||||||
else {
|
|
||||||
echo $this->documentListRow($document, $previewer, false, $res['version']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "</tbody>\n</table>\n";
|
|
||||||
*/
|
|
||||||
} else {
|
} else {
|
||||||
printMLText("no_docs_to_review");
|
printMLText("no_docs_to_review");
|
||||||
}
|
}
|
||||||
|
@ -181,30 +157,6 @@ $(document).ready( function() {
|
||||||
$this->contentHeading(getMLText("documents_to_approve"));
|
$this->contentHeading(getMLText("documents_to_approve"));
|
||||||
if($resArr) {
|
if($resArr) {
|
||||||
$this->printList($resArr, $previewer, 'listApprovals');
|
$this->printList($resArr, $previewer, 'listApprovals');
|
||||||
/*
|
|
||||||
print "<table class=\"table table-condensed\">";
|
|
||||||
print "<thead>\n<tr>\n";
|
|
||||||
print "<th></th>\n";
|
|
||||||
print "<th>".getMLText("name")."</th>\n";
|
|
||||||
print "<th>".getMLText("status")."</th>\n";
|
|
||||||
print "<th>".getMLText("action")."</th>\n";
|
|
||||||
print "</tr>\n</thead>\n<tbody>\n";
|
|
||||||
|
|
||||||
// List the documents for which an approval has been requested.
|
|
||||||
foreach ($resArr as $res) {
|
|
||||||
$document = $dms->getDocument($res["id"]);
|
|
||||||
$document->verifyLastestContentExpriry();
|
|
||||||
|
|
||||||
$txt = $this->callHook('documentListItem', $document, $previewer);
|
|
||||||
if(is_string($txt))
|
|
||||||
echo $txt;
|
|
||||||
else {
|
|
||||||
echo $this->documentListRow($document, $previewer, false, $res['version']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
echo "</tbody>\n</table>\n";
|
|
||||||
*/
|
|
||||||
} else {
|
} else {
|
||||||
printMLText("no_docs_to_approve");
|
printMLText("no_docs_to_approve");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user