Les stats vides sont prises en compte comme 0 dans les sparklines
This commit is contained in:
parent
61367d026e
commit
77f618e332
@ -1,9 +1,11 @@
|
||||
$(document).ready ->
|
||||
$('table.list.dates tbody tr').each ->
|
||||
vals = $(this).find('td.quantity a').map ->
|
||||
val = $(this).html().replace(' ', '').trim()
|
||||
if (val != '')
|
||||
vals = $(this).find('td.quantity').map ->
|
||||
val = $(this).find('a').html().replace(' ', '').trim()
|
||||
if (val && val != '')
|
||||
return parseInt val
|
||||
else
|
||||
return 0
|
||||
|
||||
$(this).find('.sparkline').sparkline vals, width: '5em'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user