diff options
author | Christian Pointner <equinox@helsinki.at> | 2014-10-08 02:55:05 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2014-10-08 02:55:05 (GMT) |
commit | d7795f99ed3fb52564fa6d2340d928ae9b191e5b (patch) | |
tree | 8a31f14d7374babfbb1dd848bd62006f63c3464b /js/shows.js | |
parent | 86f495c0b7a60e0ce1ed9a34c985eae76da8de81 (diff) |
pretty cart length
Diffstat (limited to 'js/shows.js')
-rw-r--r-- | js/shows.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/shows.js b/js/shows.js index 6da6345..cbf4d73 100644 --- a/js/shows.js +++ b/js/shows.js @@ -167,7 +167,7 @@ function shows_newCartEntry(elem) { return $('<tr>').append($('<td rowspan=2>').text(elem)) .append($('<td>').text(cart.title)) - .append($('<td>').text(cart.length)) + .append($('<td>').text(msToTimeString(cart.length))) .append($('<td>').text(cart.imported)) .append($('<td>').text(cart.playcnt)) .append($('<td>').text(cart.lastplayed)) @@ -190,7 +190,7 @@ function shows_updateGroupCartList(data, status, req) { number = $(this).find('number').text(), cart = { title: $(this).find('title').text(), - length: $(cut).find('length').text(), + length: Number($(cut).find('length').text()), imported: new Date($(cut).find('originDatetime').text()), playcnt: $(cut).find('playCounter').text(), lastplayed: new Date($(cut).find('lastPlayDatetime').text()), |