mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 10:08:38 +00:00
Merge pull request #2170 from phl0/padContestTable
Make contest table use padding for SRX and STX
This commit is contained in:
commit
e0f3b17335
@ -528,7 +528,21 @@ function restoreContestSession(data) {
|
||||
"scrollCollapse": true,
|
||||
"paging": false,
|
||||
"scrollX": true,
|
||||
order: [0, 'desc']
|
||||
order: [0, 'desc'],
|
||||
"columnDefs": [
|
||||
{
|
||||
"render": function ( data, type, row ) {
|
||||
return pad(row[8],3);
|
||||
},
|
||||
"targets" : 8
|
||||
},
|
||||
{
|
||||
"render": function ( data, type, row ) {
|
||||
return pad(row[9],3);
|
||||
},
|
||||
"targets" : 9
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -538,3 +552,8 @@ function restoreContestSession(data) {
|
||||
$("#exch_serial_s").val("1");
|
||||
}
|
||||
}
|
||||
|
||||
function pad (str, max) {
|
||||
str = str.toString();
|
||||
return str.length < max ? pad("0" + str, max) : str;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user