* code for task#1657.

This commit is contained in:
xia0ta0
2013-07-30 16:35:27 +08:00
parent 32ee5bc346
commit aad33ebc2a
+29
View File
@@ -0,0 +1,29 @@
/**
* unlink member.
*
* @param int projectID
* @param string account
* @access public
* @return void
*/
function unlinkMember(projectID, account)
{
if(confirm(confirmUnlinkMember))
{
url = createLink('project', 'unlinkMember','projectID=' + projectID + '&account=' + account + '&confrim=yes');
$.ajax(
{
type: 'GET',
url: url,
dataType: 'json',
success: function(data)
{
if(data.result == 'success')
{
url = createLink('project', 'team', 'projectID=' + projectID);
$('.outer').load(url + ' #memberlist', function(){sortTable();});
}
}
});
}
}