* Fix bug of manage memebers in project-team.

This commit is contained in:
zhouxin
2023-10-23 17:14:23 +08:00
parent cb298f8f82
commit 0afa964353
2 changed files with 18 additions and 6 deletions
+8 -5
View File
@@ -76,7 +76,7 @@ function choseTeam2Copy()
loadPage(link);
}
$(document).on('click', 'button[type=submit]', function()
window.changeProjectMembers = function()
{
let isDeleted = false;
let accountList = [];
@@ -103,10 +103,13 @@ $(document).on('click', 'button[type=submit]', function()
{
zui.Modal.confirm({message: unlinkExecutionMembers}).then((res) =>
{
if(res) $('#removeExecution').val('yes');
const formData = new FormData($("#teamForm")[0]);
$.ajaxSubmit({url: $('#teamForm').attr('action'), data: formData});
if(res)
{
$('#removeExecution').val('yes');
const formData = new FormData($("#teamForm")[0]);
$.ajaxSubmit({url: $('#teamForm').attr('action'), data: formData});
}
});
}
return false;
})
}
+10 -1
View File
@@ -278,7 +278,16 @@ div
set::value('no'),
)
)
)
),
set::actions(array(
array(
'text' => $lang->save,
'type' => 'primary',
'btnType' => 'button',
'onclick' => 'changeProjectMembers()'
),
'cancel'
))
),
);