Fixed issue with undefined values in admin tab

This commit is contained in:
Robin Naundorf 2016-04-26 08:48:11 +02:00
parent 7787cbad8d
commit 2da163430a
No known key found for this signature in database
GPG Key ID: 9BEE35DB1407478E

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 {