diff options
author | Christian Pointner <equinox@helsinki.at> | 2017-01-14 14:10:44 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2017-01-14 14:10:44 (GMT) |
commit | 99ccc45858d900a110eff3bf9f7136e35daad7bb (patch) | |
tree | 0ec21fd530791ef4d1d1e0107bbb0467fec770c8 | |
parent | 77204deba25008b59dbf0f5387d0775c4f313d83 (diff) |
print '-' if len = 0
-rw-r--r-- | www/js/todo.js | 6 |
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); |