mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
check for tasks in all possible lists
This commit is contained in:
parent
7696dc66b8
commit
e68608bf04
|
@ -1287,7 +1287,7 @@ $(document).ready(function() { /* {{{ */
|
||||||
}); /* }}} */
|
}); /* }}} */
|
||||||
|
|
||||||
(function( SeedDMSTask, $, undefined ) { /* {{{ */
|
(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 timeout = 1000;
|
||||||
var counter = 0;
|
var counter = 0;
|
||||||
var tasks = Array(
|
var tasks = Array(
|
||||||
|
@ -1301,11 +1301,21 @@ $(document).ready(function() { /* {{{ */
|
||||||
if(data) {
|
if(data) {
|
||||||
if((typeof data.data.approval != 'undefined' && approval_count != data.data.approval.length) ||
|
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.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)) {
|
(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").html('Loading').hide().load('../out/out.Tasks.php?action=menutasks').fadeIn('500')
|
||||||
$('#menu-tasks > div.ajax').trigger('update', {folderid: seeddms_folder});
|
$('#menu-tasks > div.ajax').trigger('update', {folderid: seeddms_folder});
|
||||||
approval_count = typeof data.data.approval != 'undefined' ? data.data.approval.length : 0;
|
approval_count = typeof data.data.approval != 'undefined' ? data.data.approval.length : 0;
|
||||||
review_count = typeof data.data.review != 'undefined' ? data.data.review.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;
|
workflow_count = typeof data.data.workflow != 'undefined' ? data.data.workflow.length : 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user