From 1db49ff2141b5f1afc1b02b62743a103104d231a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 4 Feb 2019 08:42:49 +0100 Subject: [PATCH] add counter for needscorrection --- styles/bootstrap/application.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/styles/bootstrap/application.js b/styles/bootstrap/application.js index 17ef5367a..2a2447af3 100644 --- a/styles/bootstrap/application.js +++ b/styles/bootstrap/application.js @@ -990,7 +990,7 @@ $(document).ready(function() { /* {{{ */ }); }); /* }}} */ - var approval_count, review_count, receipt_count, revision_count, workflow_count; + var approval_count, review_count, receipt_count, revision_count, workflow_count, needscorrection_count; var checkTasks = function() { $.ajax({url: '../out/out.Tasks.php', type: 'GET', @@ -1002,12 +1002,14 @@ $(document).ready(function() { /* {{{ */ (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.workflow != 'undefined' && workflow_count != data.data.workflow.length)) { $("#menu-tasks > ul > li").html('Loading').hide().load('../out/out.Tasks.php?action=menutasks').fadeIn('500') 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; workflow_count = typeof data.data.workflow != 'undefined' ? data.data.workflow.length : 0; } }