Merge pull request #160 from senk/fix-undefined-error

Fixed issue with undefined values in admin tab
This commit is contained in:
Daniel Jiang 2016-04-27 11:30:43 +08:00
commit 12d63b17af

View File

@ -161,8 +161,8 @@ jQuery(function(){
$("#tblUser tbody tr").remove();
$.each(data || [], function(i, e){
var row = '<tr>' +
'<td style="vertical-align: middle;">' + e.Username + '</td>' +
'<td style="vertical-align: middle;">' + e.Email + '</td>';
'<td style="vertical-align: middle;">' + e.username + '</td>' +
'<td style="vertical-align: middle;">' + e.email + '</td>';
if(e.HasAdminRole == 1){
row += '<td style="padding-left: 30px;"><button type="button" class="btn btn-success" userid="' + e.UserId + '">' + i18n.getMessage("button_on") + '</button></td>';
} else {