This commit is contained in:
tianshujie
2024-01-03 09:01:35 +08:00
parent 8d493a7d22
commit 87539dd365
2 changed files with 8 additions and 1 deletions
+6 -1
View File
@@ -8,7 +8,12 @@ window.clickSubmit = function()
const parentPlan = $('input[name=parent]').val();
const branches = $('select[name^=branch]').val();
const title = $('input[name=title]').val();
if(parentPlan > 0 && branches && title)
const begin = $('input[name=begin]').val();
const end = $('input[name=end]').val();
const errorBegin = begin && parentBegin && begin < parentBegin;
const errorEnd = end && parentEnd && end > parentEnd;
if(parentPlan > 0 && branches && title && !errorBegin && !errorEnd)
{
const link = $.createLink('productplan', 'ajaxGetDiffBranchesTip', "productID=" + productID + "&parentID=" + parentPlan + "&branches=" + branches.toString());
$.get(link, function(diffBranchesTip)
+2
View File
@@ -14,6 +14,8 @@ jsVar('weekend', $config->execution->weekend);
jsVar('productID', $product->id);
jsVar('lastLang', $lang->productplan->last);
jsVar('parentPlanID', $parent);
jsVar('parentBegin', isset($parentPlan->begin) ? $parentPlan->begin : '');
jsVar('parentEnd', isset($parentPlan->end) ? $parentPlan->end : '');
if($parent)
{