Fixed availability display

This commit is contained in:
Luca Deri 2020-04-24 11:15:46 +02:00
parent 4af0f9ed8d
commit 36e5296ea6

View file

@ -346,10 +346,7 @@ $(document).ready(function() {
className: 'text-center',
render: function(data, type, row) {
if(type === 'display' || type === 'filter') {
if(row.availability != "")
return Math.round(row.availability) + "%";
else
return "";
return Math.round(row.availability) + " %";
}
// The raw data must be returned here for sorting