From e68608bf04ea03c4a530f1ea7f5fd780d8eaee24 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 9 Feb 2021 09:18:38 +0100 Subject: [PATCH] check for tasks in all possible lists --- styles/bootstrap/application.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/styles/bootstrap/application.js b/styles/bootstrap/application.js index 36cf1c3da..6598719f8 100644 --- a/styles/bootstrap/application.js +++ b/styles/bootstrap/application.js @@ -1287,7 +1287,7 @@ $(document).ready(function() { /* {{{ */ }); /* }}} */ (function( SeedDMSTask, $, undefined ) { /* {{{ */ - var approval_count, review_count, workflow_count; + var approval_count, review_count, workflow_count, receipt_count, revision_count, needscorrection_count, rejected_count, checkedout_count; var timeout = 1000; var counter = 0; var tasks = Array( @@ -1301,11 +1301,21 @@ $(document).ready(function() { /* {{{ */ if(data) { if((typeof data.data.approval != 'undefined' && approval_count != data.data.approval.length) || (typeof data.data.review != 'undefined' && review_count != data.data.review.length) || + (typeof data.data.receipt != 'undefined' && receipt_count != data.data.receipt.length) || + (typeof data.data.revision != 'undefined' && revision_count != data.data.revision.length) || + (typeof data.data.needscorrection != 'undefined' && needscorrection_count != data.data.needscorrection.length) || + (typeof data.data.rejected != 'undefined' && rejected_count != data.data.rejected.length) || + (typeof data.data.checkedout != 'undefined' && checkedout_count != data.data.checkedout.length) || (typeof data.data.workflow != 'undefined' && workflow_count != data.data.workflow.length)) { // $("#menu-tasks").html('Loading').hide().load('../out/out.Tasks.php?action=menutasks').fadeIn('500') $('#menu-tasks > div.ajax').trigger('update', {folderid: seeddms_folder}); approval_count = typeof data.data.approval != 'undefined' ? data.data.approval.length : 0; review_count = typeof data.data.review != 'undefined' ? data.data.review.length : 0; + receipt_count = typeof data.data.receipt != 'undefined' ? data.data.receipt.length : 0; + revision_count = typeof data.data.revision != 'undefined' ? data.data.revision.length : 0; + needscorrection_count = typeof data.data.needscorrection != 'undefined' ? data.data.needscorrection.length : 0; + rejected_count = typeof data.data.rejected != 'undefined' ? data.data.rejected.length : 0; + checkedout_count = typeof data.data.checkedout != 'undefined' ? data.data.checkedout.length : 0; workflow_count = typeof data.data.workflow != 'undefined' ? data.data.workflow.length : 0; } }