summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-27 11:17:55 +0100
committerAlib <aliboba@free.fr>2010-03-27 11:17:55 +0100
commit1237d5c0aacc7082d8fb7eca1c52f4c0edb0ddd0 (patch)
tree0c99ca0c0385af92bbde16eba6bc74978438714b /js
parent3d1a65a5186d92cda0c515bac7991786be976af2 (diff)
downloadistreamdev-1237d5c0aacc7082d8fb7eca1c52f4c0edb0ddd0.tar.gz
istreamdev-1237d5c0aacc7082d8fb7eca1c52f4c0edb0ddd0.tar.bz2
channel link on epg all
Diffstat (limited to 'js')
-rw-r--r--js/istreamdev.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js
index 21eedf5..4aae3f8 100644
--- a/js/istreamdev.js
+++ b/js/istreamdev.js
@@ -999,7 +999,7 @@ json_start(this);
get_epg("all","now","0","2");
});
-$('#epglist #ul_epglist a').tap(function(event) {
+$('#epglist #ul_epglist a.epgdetailsbutton').tap(function(event) {
event.preventDefault();
json_start(this);
channum = $(this).attr("rel");
@@ -1009,6 +1009,14 @@ day = $('#epglist div[rel="dataholder"] span[rel="day"]').text();
get_epgdetails(channum,startingtime,day);
});
+$('#epglist #ul_epglist a[rel="epgchan"]').tap(function(event) {
+event.preventDefault();
+json_start(this);
+channum = $(this).find('span').text();
+day = $('#epglist div[rel="dataholder"] span[rel="day"]').text();
+get_epg(channum,"",day,"day")
+});
+
$('#epgdetails span.recButton a').tap(function(event) {
event.preventDefault();
json_start(this);
@@ -1100,7 +1108,6 @@ var dataString = 'action=getEpg&channel=' + channel + '&time=' + time + '&day='
type = 'chan';
parse_epg(data,channel,type,day);
}
- $('#epglist li[rel="toggle"]').hide();
});
}
@@ -1152,7 +1159,7 @@ function parse_epg(data,selectedvalue,type,day){
togglestatus = '';
}
k++;
- $('#epglist #ul_epglist').append('<li rel="' + togglestatus + '" class="sep">' + channel.name + '</li>');
+ $('#epglist #ul_epglist').append('<li rel="' + togglestatus + '" class="sep"><a href="#" rel="epgchan"><span class="epgtime_now">' + channel.number + '</span>' + ' - ' + channel.name + '</a></li>');
$.each(channel.epg, function(j,epg){
if ( k > 10 ) {
togglestatus = 'toggle';
@@ -1161,7 +1168,7 @@ function parse_epg(data,selectedvalue,type,day){
{
togglestatus = '';
}
- $('#epglist #ul_epglist').append('<li rel="' + togglestatus + '"><a href="#" rel="' + channel.number + '"><span class="epgtime">' + epg.time + '</span><span class="epgname">' + epg.title + '</span></a></li>');
+ $('#epglist #ul_epglist').append('<li rel="' + togglestatus + '"><a href="#" class="epgdetailsbutton" rel="' + channel.number + '"><span class="epgtime">' + epg.time + '</span><span class="epgname">' + epg.title + '</span></a></li>');
k++;
});