summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js')
-rw-r--r--www/js/nextshows.js16
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);
}