Update user.js for translate adaptation
- Add i18n for alert
This commit is contained in:
parent
9551a9b3f3
commit
988b46d30c
|
@ -60,7 +60,7 @@ function rowCallback( nRow, aData, iDisplayIndex ){
|
||||||
if( aData['delete'] != "self"){
|
if( aData['delete'] != "self"){
|
||||||
$('td:eq(4)', nRow).append( '<span class="ui-icon ui-icon-closethick"></span>').children('span').click(function(e){e.stopPropagation(); removeUserCallback(aData['id'], nRow)});
|
$('td:eq(4)', nRow).append( '<span class="ui-icon ui-icon-closethick"></span>').children('span').click(function(e){e.stopPropagation(); removeUserCallback(aData['id'], nRow)});
|
||||||
}else{
|
}else{
|
||||||
$('td:eq(4)', nRow).empty().append( '<span class="ui-icon ui-icon-closethick"></span>').children('span').click(function(e){e.stopPropagation(); alert("Can't delete yourself!")});
|
$('td:eq(4)', nRow).empty().append( '<span class="ui-icon ui-icon-closethick"></span>').children('span').click(function(e){e.stopPropagation(); alert($.i18n._("Can't delete yourself!"))});
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( aData['type'] == "A" )
|
if ( aData['type'] == "A" )
|
||||||
|
|
Loading…
Reference in New Issue