diff --git a/module/project/js/common.js b/module/project/js/common.js index c3bdce25e0..11c6b4e011 100644 --- a/module/project/js/common.js +++ b/module/project/js/common.js @@ -1,7 +1,8 @@ window.ignoreTips = { - 'beyondBudgetTip' : false, - 'dateTip' : false + 'beyondBudgetTip' : false, + 'dateTip' : false, }; +var batchEditDateTips = new Array(); /** * Access rights are equal to private, and the white list settings are displayed. @@ -366,13 +367,15 @@ function budgetOverrunTips() /** *The date is out of the range of the parent project set, and a prompt is given. * - * @param int $currentID + * @param string $currentID * @access public * @return void */ -function outOfDateTip(currentID = 0) +function outOfDateTip(currentID = '') { if(window.ignoreTips['dateTip']) return; + if(batchEditDateTips.includes(Number(currentID))) return; + var end = currentID ? $('#ends\\[' + currentID + '\\]').val() : $('#end').val(); var begin = currentID ? $('#begins\\[' + currentID + '\\]').val() : $('#begin').val(); if($('#dateTip.text-remind').length > 0) $('#dateTip').parent().parent().remove(); @@ -413,6 +416,7 @@ function outOfDateTip(currentID = 0) if(currentID) { $("#projects\\[" + currentID + "\\]").after("