From d05bc53fd630baaba0f1cf28c5a6396ff9fab7f0 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 8 Dec 2016 04:55:34 +0100 Subject: display specials (Sondersendung) in show selector as well diff --git a/www/js/shows.js b/www/js/shows.js index c76d173..8a83057 100644 --- a/www/js/shows.js +++ b/www/js/shows.js @@ -101,10 +101,14 @@ Rdxport.ShowListView.prototype.updateSelector = function() { var atitle = a.title.toLowerCase(); if(a.type == "r") { atitle += " (Wiederholung)"; + } else if(a.type == 's') { + atitle += " (Sondersendung)"; } var btitle = b.title.toLowerCase(); if(b.type == "r") { btitle += " (Wiederholung)"; + } else if(b.type == 's') { + btitle += " (Sondersendung)"; } if(atitle == btitle) { if(b.rhythm == a.rhythm) { @@ -127,6 +131,8 @@ Rdxport.ShowListView.prototype.updateSelector = function() { var title = show.title; if(show.type == "r") { title += " (Wiederholung)"; + } else if(show.type == 's') { + title += " (Sondersendung)"; } var name = show.id + ' | ' + title + ' (' + show.rhythm + ', ' + weekday[show.dayofweek] + ', ' + show.starttime + ', ' + (show.length == 0 ? '-' : show.length) + ' Min.)'; var link = $('').attr('href', '#').html(name).click(function() { -- cgit v0.10.2