diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-06-25 01:44:59 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-06-25 01:45:20 (GMT) |
commit | 725acfe74356e46580dcc727b0f799d3e3ec3e06 (patch) | |
tree | 61768e011d89ee92b6dd3b5f4077bfa4188ce493 /www/js | |
parent | 08faf157b1d86e565d34bfb9507e8fc3d662d1f6 (diff) |
css for nextshow is almost done (needs testing)
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/nextshows.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/www/js/nextshows.js b/www/js/nextshows.js index 39f61dd..0ab6c83 100644 --- a/www/js/nextshows.js +++ b/www/js/nextshows.js @@ -76,8 +76,8 @@ rh.ShowListView = function(model, len) { }; rh.ShowListView.prototype.render = function() { - var list = $('#shows table'); - $('tr', list).remove(); + var list = $('#shows'); + $('div.show', list).remove(); this.showViews = []; var self = this; @@ -94,23 +94,23 @@ rh.ShowView = function(model, listView) { this.model = model; this.listView = listView; - this.$el = $('<tr>'); + this.$el = $('<div>'); }; rh.ShowView.prototype.render = function() { - var title = $('<td>').addClass('show-title').text(this.model.title); - var startstr = "Beginn: " + format_time(this.model.start); - var start = $('<td>').addClass('show-start').text(startstr); + var start = $('<span>').addClass('show-start').text(startstr); var endstr = "Live"; if(this.model.len > 0) { var end = new Date(this.model.start.valueOf() + this.model.len); endstr = "Ende: " + format_time(end); } - var end = $('<td>').addClass('show-end').text(endstr); + var end = $('<span>').addClass('show-end').text(endstr); + + var title = $('<span>').addClass('show-title').text(this.model.title); - this.$el.empty().addClass('show').append(start).append(title).append(end); + this.$el.empty().addClass('show').append(start).append(end).append(title); } |