make all list sortable by fields in header

This commit is contained in:
Uwe Steinmann 2017-01-10 21:25:45 +01:00
parent 2d2ebdc887
commit 7a721ee84f

View File

@ -120,6 +120,8 @@ $(document).ready( function() {
$this->contentHeading(getMLText("documents_to_review"));
if($resArr) {
$this->printList($resArr, $previewer, 'listReviews');
/*
print "<table class=\"table table-condensed\">";
print "<thead>\n<tr>\n";
print "<th></th>\n";
@ -142,6 +144,7 @@ $(document).ready( function() {
}
echo "</tbody>\n</table>\n";
*/
} else {
printMLText("no_docs_to_review");
}
@ -170,6 +173,8 @@ $(document).ready( function() {
}
$this->contentHeading(getMLText("documents_to_approve"));
if($resArr) {
$this->printList($resArr, $previewer, 'listApprovals');
/*
print "<table class=\"table table-condensed\">";
print "<thead>\n<tr>\n";
print "<th></th>\n";
@ -192,6 +197,7 @@ $(document).ready( function() {
}
echo "</tbody>\n</table>\n";
*/
} else {
printMLText("no_docs_to_approve");
}
@ -403,7 +409,7 @@ $(document).ready( function() {
$this->contentHeading(getMLText("documents_to_revise"));
if($resArr) {
$this->printList($resArr, $previewer);
$this->printList($resArr, $previewer, 'listRevisions');
} else {
printMLText("no_docs_to_revise");
}
@ -432,7 +438,7 @@ $(document).ready( function() {
$this->contentHeading(getMLText("documents_to_receipt"));
if($resArr) {
$this->printList($resArr, $previewer);
$this->printList($resArr, $previewer, 'listReceipts');
} else {
printMLText("no_docs_to_receipt");
}
@ -465,7 +471,7 @@ $(document).ready( function() {
$this->contentHeading(getMLText("documents_user_rejected"));
if ($resArr) {
$this->printList($resArr, $previewer);
$this->printList($resArr, $previewer, 'listRejects');
}
else printMLText("no_docs_rejected");
@ -495,7 +501,7 @@ $(document).ready( function() {
$this->contentHeading(getMLText("documents_locked_by_you"));
if ($resArr) {
$this->printList($resArr, $previewer);
$this->printList($resArr, $previewer, 'listLockedDocs');
}
else printMLText("no_docs_locked");
@ -525,7 +531,7 @@ $(document).ready( function() {
$this->contentHeading(getMLText("documents_checked_out_by_you"));
if ($resArr) {
$this->printList($resArr, $previewer);
$this->printList($resArr, $previewer, 'listCheckedoutDocs');
}
else printMLText("no_docs_checked_out");
} /* }}} */