CC-2126: User should not be delete himself
Done.
This commit is contained in:
parent
b9c1f7356f
commit
2a5df8bed9
2 changed files with 24 additions and 2 deletions
|
@ -36,7 +36,11 @@ function removeUserCallback(row_id, nRow){
|
|||
|
||||
function rowCallback( nRow, aData, iDisplayIndex ){
|
||||
$(nRow).click(function(){rowClickCallback(aData[0])});
|
||||
$('td:eq(4)', nRow).append( '<span class="ui-icon ui-icon-closethick"></span>').children('span').click(function(e){e.stopPropagation(); removeUserCallback(aData[0], nRow)});
|
||||
if( aData[5] != "self"){
|
||||
$('td:eq(4)', nRow).append( '<span class="ui-icon ui-icon-closethick"></span>').children('span').click(function(e){e.stopPropagation(); removeUserCallback(aData[0], nRow)});
|
||||
}else{
|
||||
$('td:eq(4)', nRow).empty();
|
||||
}
|
||||
|
||||
if ( aData[4] == "A" )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue