* Remove useless codes.

This commit is contained in:
daitingting
2023-10-07 08:50:48 +00:00
parent 7721324364
commit d86fe1be56
4 changed files with 0 additions and 10 deletions
-2
View File
@@ -734,7 +734,6 @@ function setBranchRelated(event)
{
var planID = $('#plans_' + num).val();
var planLink = $.createLink('product', 'ajaxGetPlans', 'productID=' + productID + '&branch=' + branchID + '&planID=' + planID + '&fieldID=' + num + '&needCreate=false&expired=&param=skipParent');
$.ajaxSettings.async = false;
$('#plans_' + num).parent('td').load(planLink, function()
{
var firstBugID = $('.table-form tbody').first('tr').find('input[id^=bugIDList]').val();
@@ -747,7 +746,6 @@ function setBranchRelated(event)
});
}
});
$.ajaxSettings.async = true;
}
}
-2
View File
@@ -29,7 +29,6 @@ function editStage()
{
var result = true;
$.ajaxSettings.async = false;
$.get($.createLink('programplan', 'ajaxGetStageAttr', 'stageID=' + $('#parent').val()), function(attribute)
{
if(attribute != 'mix' && plan.attribute != attribute)
@@ -37,7 +36,6 @@ function editStage()
result = confirm(changeAttrLang.replace('%s', stageTypeList[attribute]));
}
});
$.ajaxSettings.async = true;
if(!result) return;
}
-4
View File
@@ -57,10 +57,8 @@ window.loadBranchRelation = function(e)
const branchIndex = $picker.options.index;
const productID = $('[name=product]').val();
$.ajaxSettings.async = false;
loadModuleForTwins(productID, branch, branchIndex)
loadPlanForTwins(productID, branch, branchIndex)
$.ajaxSettings.async = true;
disableSelectedBranches()
};
@@ -104,10 +102,8 @@ window.addBranchesBox = function(e)
$newLine.find('.removeNewLine').on('click', deleteBranchesBox);
$.ajaxSettings.async = false;
loadModuleForTwins(productID, branch, itemIndex)
loadPlanForTwins(productID, branch, itemIndex)
$.ajaxSettings.async = true;
if($("form [id^='branches']").length == $branchPicker.options.items.length)
{
-2
View File
@@ -142,7 +142,6 @@ h::script
if($('#' + id).attr('isInit')) return;
$.ajaxSettings.async = false;
$.get(createLink('transfer', 'ajaxGetOptions', 'model={$model}&field=' + field + '&value=' + value + '&index=' + index), function(data)
{
$('#' + id).parent().html(data);
@@ -150,7 +149,6 @@ h::script
$('#' + id).attr('isInit', true);
$('#' + id).attr('data-field', field);
});
$.ajaxSettings.async = true;
});
$(function()