add counter for needscorrection

This commit is contained in:
Uwe Steinmann 2019-02-04 08:42:49 +01:00
parent 22a4160a58
commit 1db49ff214

View File

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