* Remove useless codes.
This commit is contained in:
@@ -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=¶m=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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user