diff options
author | Alib <aliboba@free.fr> | 2010-03-16 17:56:32 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-16 17:56:32 +0100 |
commit | cb1c3d7c2c4e96d9e3c74f39db1cb586e76a616e (patch) | |
tree | 1b1a479b5903858b73b962eaddeaf552d9f2aa81 /js | |
parent | c3a730a1a20ad9ec86d23f348621a058472d7e3f (diff) | |
download | istreamdev-cb1c3d7c2c4e96d9e3c74f39db1cb586e76a616e.tar.gz istreamdev-cb1c3d7c2c4e96d9e3c74f39db1cb586e76a616e.tar.bz2 |
escape category
Diffstat (limited to 'js')
-rw-r--r-- | js/istreamdev.js | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index 091b145..12fd27b 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -167,7 +167,7 @@ function gen_categories() { //Gen Channels
function gen_channels(category) {
$("#chan_menu").html('');
- var dataString = "action=getTvChan&cat=" + category;
+ var dataString = "action=getTvChan&cat=" + escape(category);
//Json call to get category array
$.getJSON("bin/backend.php",
dataString,
@@ -674,6 +674,7 @@ function gen_formchanlist() { $.getJSON("bin/backend.php",
dataString,
function(data) {
+ $('#jqt').data('channellist',data);
$.each(data.category, function(i,category){
$('#timer_chan').append('<optgroup label="' + category.name + '">');
var catname = category.name;
@@ -739,4 +740,25 @@ function showStatus( timeout, message ) { $('#timer_status').hide();
}
}
-// [/TIMER SECTION]
\ No newline at end of file +// [/TIMER SECTION]
+
+// [EPG SECTION]
+function gen_epgchanlist() {
+ data = $('#jqt').data('channellist');
+ $.each(data.category, function(i,category){
+ $('#epg_chan').append('<optgroup label="' + category.name + '">');
+ var catname = category.name;
+ $.each(category.channel, function(j, channel){
+ $('#epg_chan optgroup[label="' + catname +'"]').append('<option value="' + channel.number + '">' + channel.name +'</option>');
+ });
+ $('#epg_chan').append('</optgroup>');
+ });
+}
+
+// check if chan is slected
+function epg_selectchan() {
+ selectedchan = $('#epg_chan').val();
+ alert(selectedchan);
+}
+
+// [/EPG SECTION]
\ No newline at end of file |