From 2563ab4fb60b2b35caf2806c08916ebc28477f82 Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Fri, 8 Aug 2014 10:21:06 +0300 Subject: [PATCH] [webui] remove some unused stuff --- src/webui/static/app/epg.js | 67 ------------------------------------- 1 file changed, 67 deletions(-) diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 5ada870d..9844b4c8 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -170,76 +170,9 @@ tvheadend.epgDetails = function(event) { } }); } - - function showAlternatives(s) { - var e = Ext.get('altbcast'); - html = ''; - if (s.getTotalCount() > 0) { - html += '
Alternative Broadcasts
'; - for (i = 0; i < s.getTotalCount(); i++) { - var ab = s.getAt(i).data; - var dt = Date.parseDate(ab.start, 'U'); - html += '
' + dt.format('l H:i') - + '   ' + ab.channel + '
'; - } - } - e.dom.innerHTML = html; - } - function showRelated(s) { - var e = Ext.get('related'); - html = ''; - if (s.getTotalCount() > 0) { - html += '
Related Episodes
'; - for (i = 0; i < s.getTotalCount(); i++) { - var ee = s.getAt(i).data; - html += '
'; - if (ee.episode) - html += ee.episode + '   '; - html += ee.title; - if (ee.subtitle) - html += ' : ' + ee.subtitle; - html += '
'; - } - } - e.dom.innerHTML = html; - } - - var ab = new Ext.data.JsonStore({ - root: 'entries', - url: 'epgrelated', - autoLoad: false, - id: 'id', - baseParams: { - op: 'get', - id: event.id, - type: 'alternative' - }, - fields: Ext.data.Record.create(['id', 'channel', 'start']), - listeners: { - 'datachanged': showAlternatives - } - }); - var re = new Ext.data.JsonStore({ - root: 'entries', - url: 'epgrelated', - autoLoad: false, - id: 'uri', - baseParams: { - op: 'get', - id: event.id, - type: 'related' - }, - fields: Ext.data.Record - .create(['uri', 'title', 'subtitle', 'episode']), - listeners: { - 'datachanged': showRelated - } - }); }; tvheadend.epg = function() { - var xg = Ext.grid; - var actions = new Ext.ux.grid.RowActions({ header: '', width: 20,