summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/js/todo.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/www/js/todo.js b/www/js/todo.js
index dd9acb1..84f5b33 100644
--- a/www/js/todo.js
+++ b/www/js/todo.js
@@ -159,7 +159,11 @@ rh.ShowView = function(model, listView) {
rh.ShowView.prototype.render = function() {
var start = $('<span>').addClass('show-start').text(format_time(this.model.start));
- var len = $('<span>').addClass('show-len').text("(" + format_durationms(this.model.len) + ")");
+ var lenstr = "-";
+ if(this.model.len > 0) {
+ lenstr = format_durationms(this.model.len);
+ }
+ var len = $('<span>').addClass('show-len').text("(" + lenstr + ")");
var showlink = $('<a>').attr('href', "https://import.helsinki.at/shows/" + this.model.id)
.attr('target', "import").text(this.model.title);