timestack
timestack copied to clipboard
Some changes
Hello. I need to change view to one line per warehouse (group by Warehouse). I have always one day and time without colision. I use:
<div id="timeline" style="width: 90%; float: left;">
<ul>
<li data-start='2012-08-26T06:00' data-end='2012-08-26T09:00' data-color='#95e6ff'>Magazyn A</li>
<li data-start='2012-08-26T11:00' data-end='2012-08-26T13:30' data-color='#ff95c0'>Magazyn B</li>
<li data-start='2012-08-26T09:30' data-end='2012-08-26T12:30' data-color='#95e6ff'>Magazyn A</li>
<li data-start='2012-08-26T16:15' data-end='2012-08-26T19:00' data-color='#ff95c0'>Magazyn B</li>
<li data-start='2012-08-26T13:30' data-end='2012-08-26T16:30' data-color='#95e6ff'>Magazyn A</li>
</ul>
</div>
I've always wanted to do this, but I haven't gotten to it. I think it's about adding a group field (or in this case, a data-group attribute) and then changing the logic to put them on the same line. I'm pretty slammed right now and wouldn't get to doing this for a while, but I'd be happy to take a pull request.