Line 137: | Line 137: | ||
obj = JSON.parse(datastring); | obj = JSON.parse(datastring); | ||
var padInt5 = function ( i ){ | var padInt5 = function ( i ){ | ||
− | i.toString().padStart(5, '0'); | + | return i.toString().padStart(5, '0'); |
}; | }; | ||
obj.id = padInt5(obj.id); | obj.id = padInt5(obj.id); |
Revision as of 21:15, 28 October 2017