1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 08:53:23 -05:00

Adds accurate sorting for time_in, time_out, and total.

* uses moment.js
* changed from formatter to mutator for time_in and time_out.
This commit is contained in:
Jonathan Rosenbaum 2017-10-30 03:15:29 +00:00
parent c622cee563
commit 3dff971ac9

View File

@ -40,7 +40,7 @@ $(function(){
return '<a href="./shop_log.php?shop_id=' + shop_id + '">' + shop_id + "</a>";
},
},
{title:"Time In", field:"time_in", align:"center", width:100,
{title:"Time In", field:"time_in", align:"center", width:100, sorter:"time", sorterParams:{format:"hh:mm:ss"},
mutator:function(value, data, type, mutatorParams, cell){
var time_in = value.split(" ");
return time_in[1];