Make contest table use padding for SRX and STX
这个提交包含在:
父节点
679a8e676c
当前提交
6787c62caa
共有 1 个文件被更改,包括 20 次插入 和 1 次删除
|
|
@ -528,7 +528,21 @@ function restoreContestSession(data) {
|
||||||
"scrollCollapse": true,
|
"scrollCollapse": true,
|
||||||
"paging": false,
|
"paging": false,
|
||||||
"scrollX": true,
|
"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");
|
$("#exch_serial_s").val("1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function pad (str, max) {
|
||||||
|
str = str.toString();
|
||||||
|
return str.length < max ? pad("0" + str, max) : str;
|
||||||
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用