Line 136: | Line 136: | ||
$('#show-details').html(datastring); | $('#show-details').html(datastring); | ||
obj = JSON.parse(datastring); | obj = JSON.parse(datastring); | ||
− | padInt5 = function ( i ){ | + | var padInt5 = function ( i ){ |
i.toString().padStart(5, '0'); | i.toString().padStart(5, '0'); | ||
− | } | + | }; |
obj.id = padInt5(obj.id); | obj.id = padInt5(obj.id); | ||
console.log(obj); | console.log(obj); |
Revision as of 21:15, 28 October 2017