summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-26 17:09:45 +0100
committerTheTroll <trolldev@gmail.com>2010-03-26 17:09:45 +0100
commit77fabd64019e1abbbf50f7276c02f0794104447a (patch)
tree23c238d66710d7704d324cec68bdcd95d7cede17 /js
parente55c7f6f37075915723adf994befcd5e56084915 (diff)
parent26de7730dd148d08c10af1b1b40b34b7d47a2f3d (diff)
downloadistreamdev-77fabd64019e1abbbf50f7276c02f0794104447a.tar.gz
istreamdev-77fabd64019e1abbbf50f7276c02f0794104447a.tar.bz2
Merge branch 'jquery' of projects.vdr-developer.org:istreamdev into jquery
* 'jquery' of projects.vdr-developer.org:istreamdev: date in page title for epg css fix almost done for epg added rec from epg
Diffstat (limited to 'js')
-rw-r--r--js/istreamdev.js20
1 files changed, 17 insertions, 3 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js
index 4785d12..20b89ed 100644
--- a/js/istreamdev.js
+++ b/js/istreamdev.js
@@ -1002,13 +1002,27 @@ get_epg("all","now","0","2");
$('#epglist #ul_epglist a').tap(function(event) {
event.preventDefault();
json_start(this);
-channum = $(this).find('span[rel="channum"]').text();
+channum = $(this).attr("rel");
epgtime = $(this).find('span[class="epgtime"]').text();
startingtime = epgtime.substring(0,2) + '' + epgtime.substring(3);
day = $('#epglist div[rel="dataholder"] span[rel="day"]').text();
get_epgdetails(channum,startingtime,day);
});
+$('#epgdetails span.recButton a').tap(function(event) {
+ event.preventDefault();
+ json_start(this);
+ var id = "new";
+ var active= 1;
+ var name = $("#epgdetails").find('span[class="name_now"]').text();
+ var channumber = $("#epgdetails" ).find('span[rel="number"]').text();
+ var channame = $("#epgdetails").find('span[rel="channame"]').text();
+ var rec_date = $("#epgdetails").find('span[rel="date"]').text();
+ var starttime = $("#epgdetails").find('span[rel="stime"]').text();
+ var endtime = $("#epgdetails").find('span[rel="etime"]').text();
+ gen_edittimer(id,name,active,channumber,channame,rec_date,starttime,endtime);
+ return false;
+});
//functions
function gen_epgmenu() {
gen_epgchanlist();
@@ -1091,7 +1105,7 @@ function parse_epg(data,selectedvalue,type,day){
var date_month = str_pad(date.getMonth()+1,2,'0','STR_PAD_LEFT');
var date_day = str_pad(date.getDate(),2,'0','STR_PAD_LEFT');
var epgdate = date_year + "-" + date_month + "-" + date_day;
- $('#epglist #ul_epglist').append('<li rel="epgdate" class="sep">' + epgdate + '</li>');
+ $('#epglist h1').html(epgdate);
if ( data.category.length > 1 )
{
$('#epglist #epg_selector').append('<select id="epglist_cat"></select>');
@@ -1137,7 +1151,7 @@ function parse_epg(data,selectedvalue,type,day){
{
togglestatus = '';
}
- $('#epglist #ul_epglist').append('<li rel="' + togglestatus + '"><a href="#"><span class="epgtime">' + epg.time + '</span><span class="epgname">' + epg.title + '</span><span style="visibility:hidden" rel="channum">' + channel.number + '</span></a></li>');
+ $('#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>');
k++;
});