mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
we don't need to show '000' in the datatable
This commit is contained in:
@@ -53,13 +53,13 @@ async function reset_contest_session() {
|
||||
"columnDefs": [
|
||||
{
|
||||
"render": function ( data, type, row ) {
|
||||
return pad(row[8],3);
|
||||
return row[8] !== null && row[8] !== '' ? pad(row[8], 3) : '';
|
||||
},
|
||||
"targets" : 8
|
||||
},
|
||||
{
|
||||
"render": function ( data, type, row ) {
|
||||
return pad(row[9],3);
|
||||
return row[9] !== null && row[9] !== '' ? pad(row[9], 3) : '';
|
||||
},
|
||||
"targets" : 9
|
||||
}
|
||||
@@ -624,13 +624,13 @@ async function refresh_qso_table(data) {
|
||||
"columnDefs": [
|
||||
{
|
||||
"render": function ( data, type, row ) {
|
||||
return pad(row[8],3);
|
||||
return row[8] !== null && row[8] !== '' ? pad(row[8], 3) : '';
|
||||
},
|
||||
"targets" : 8
|
||||
},
|
||||
{
|
||||
"render": function ( data, type, row ) {
|
||||
return pad(row[9],3);
|
||||
return row[9] !== null && row[9] !== '' ? pad(row[9], 3) : '';
|
||||
},
|
||||
"targets" : 9
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user