From a6bb290f4d40d4268b27ce786fc6e35f5e833101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sat, 15 Aug 2009 22:02:37 +0000 Subject: [PATCH] Make the (i) (for service details) button work in IPTV grid --- src/webui/extjs.c | 10 +++++----- src/webui/static/app/dvb.js | 2 +- src/webui/static/app/iptv.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/webui/extjs.c b/src/webui/extjs.c index e1c50f1c..51848277 100644 --- a/src/webui/extjs.c +++ b/src/webui/extjs.c @@ -1335,8 +1335,8 @@ extjs_dvbsatconf(http_connection_t *hc, const char *remain, void *opaque) * */ static int -extjs_dvbservicedetails(http_connection_t *hc, - const char *remain, void *opaque) +extjs_servicedetails(http_connection_t *hc, + const char *remain, void *opaque) { htsbuf_queue_t *hq = &hc->hc_reply; htsmsg_t *out, *streams, *c; @@ -1723,9 +1723,6 @@ extjs_start(void) http_path_add("/dvb/satconf", NULL, extjs_dvbsatconf, ACCESS_ADMIN); - http_path_add("/dvb/servicedetails", - NULL, extjs_dvbservicedetails, ACCESS_ADMIN); - http_path_add("/dvb/feopts", NULL, extjs_dvb_feopts, ACCESS_ADMIN); @@ -1735,4 +1732,7 @@ extjs_start(void) http_path_add("/iptv/services", NULL, extjs_iptvservices, ACCESS_ADMIN); + http_path_add("/servicedetails", + NULL, extjs_servicedetails, ACCESS_ADMIN); + } diff --git a/src/webui/static/app/dvb.js b/src/webui/static/app/dvb.js index a3d4082c..8fb75dff 100644 --- a/src/webui/static/app/dvb.js +++ b/src/webui/static/app/dvb.js @@ -300,7 +300,7 @@ tvheadend.dvb_services = function(adapterId) { qtip:'Detailed information about service', cb: function(grid, record, action, row, col) { Ext.Ajax.request({ - url: "dvb/servicedetails/" + record.id, + url: "servicedetails/" + record.id, success:function(response, options) { r = Ext.util.JSON.decode(response.responseText); tvheadend.showTransportDetails(r); diff --git a/src/webui/static/app/iptv.js b/src/webui/static/app/iptv.js index 7796cef5..acdbfc0f 100644 --- a/src/webui/static/app/iptv.js +++ b/src/webui/static/app/iptv.js @@ -21,7 +21,7 @@ tvheadend.iptv = function(adapterId) { qtip:'Detailed information about service', cb: function(grid, record, action, row, col) { Ext.Ajax.request({ - url: "dvb/servicedetails/" + record.id, + url: "servicedetails/" + record.id, success:function(response, options) { r = Ext.util.JSON.decode(response.responseText); tvheadend.showTransportDetails(r);