From 99ccc45858d900a110eff3bf9f7136e35daad7bb Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 14 Jan 2017 15:10:44 +0100 Subject: print '-' if len = 0 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 = $('').addClass('show-start').text(format_time(this.model.start)); - var len = $('').addClass('show-len').text("(" + format_durationms(this.model.len) + ")"); + var lenstr = "-"; + if(this.model.len > 0) { + lenstr = format_durationms(this.model.len); + } + var len = $('').addClass('show-len').text("(" + lenstr + ")"); var showlink = $('').attr('href', "https://import.helsinki.at/shows/" + this.model.id) .attr('target', "import").text(this.model.title); -- cgit v0.10.2