Fixing owner undefined issue in device view

revert-dabc3590
dilanua 8 years ago
parent 3262a7d926
commit fcd68eab59

@ -222,9 +222,9 @@ function loadDevices(searchType, searchParam){
} }
},{ },{
class: 'fade-edge remove-padding-top', class: 'fade-edge remove-padding-top',
data: 'user', data: 'owner',
render: function ( user, type, row, meta ) { render: function ( owner, type, row, meta ) {
return '<div><label class="label-bold">Owner</label>' + user + '</div>'; return '<div><label class="label-bold">Owner&nbsp;:&nbsp;</label>' + owner + '</div>';
} }
},{ },{
class: 'fade-edge remove-padding-top', class: 'fade-edge remove-padding-top',
@ -245,19 +245,19 @@ function loadDevices(searchType, searchParam){
html = '<span><i class="fw fw-delete icon-danger"></i> Removed</span>'; html = '<span><i class="fw fw-delete icon-danger"></i> Removed</span>';
break; break;
} }
return '<div><label class="label-bold">Status</label>'+html+'</div>'; return '<div><label class="label-bold">Status&nbsp;:&nbsp;</label>'+html+'</div>';
} }
},{ },{
className: 'fade-edge remove-padding-top', className: 'fade-edge remove-padding-top',
data: 'deviceType', data: 'deviceType',
render: function ( deviceType, type, row, meta ) { render: function ( deviceType, type, row, meta ) {
return '<div><label class="label-bold">Type</label>' + deviceType + '</div>'; return '<div><label class="label-bold">Type&nbsp;:&nbsp;</label>' + deviceType + '</div>';
} }
},{ },{
className: 'fade-edge remove-padding-top', className: 'fade-edge remove-padding-top',
data: 'ownership', data: 'ownership',
render: function ( ownership, type, row, meta ) { render: function ( ownership, type, row, meta ) {
return '<div><label class="label-bold">Ownership</label>' + ownership + '</div>'; return '<div><label class="label-bold">Ownership&nbsp;:&nbsp;</label>' + ownership + '</div>';
} }
} }
]; ];

Loading…
Cancel
Save