From 351c11de891427d7df23942245f96d3588bd3647 Mon Sep 17 00:00:00 2001 From: Alib Date: Sun, 28 Mar 2010 17:26:45 +0200 Subject: fix date --- js/functions.js | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'js') diff --git a/js/functions.js b/js/functions.js index 9621612..f628142 100644 --- a/js/functions.js +++ b/js/functions.js @@ -120,18 +120,3 @@ function str_pad (input, pad_length, pad_string, pad_type) { return input; } - -function addslashes(str) { -str=str.replace(/\\/g,'\\\\'); -str=str.replace(/\'/g,'\\\''); -str=str.replace(/\"/g,'\\"'); -str=str.replace(/\0/g,'\\0'); -return str; -} -function stripslashes(str) { -str=str.replace(/\\'/g,'\''); -str=str.replace(/\\"/g,'"'); -str=str.replace(/\\0/g,'\0'); -str=str.replace(/\\\\/g,'\\'); -return str; -} -- cgit v1.2.3 From 3d82bce94b4d00ce573418dc6444694e2dc8765c Mon Sep 17 00:00:00 2001 From: Alib Date: Sun, 28 Mar 2010 17:31:32 +0200 Subject: fix date format --- js/istreamdev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index 40f380e..e084047 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -398,7 +398,7 @@ $('#streamchannel span.recButton a').tap(function(event) { rec_month = str_pad(rec_month,2,'0','STR_PAD_LEFT'); var rec_day = date.getDate(); rec_day = str_pad(rec_day,2,'0','STR_PAD_LEFT'); - var rec_date = rec_year + "-" + rec_month + "-" + rec_day; + var rec_date = rec_year + "/" + rec_month + "/" + rec_day; var epgtime = $("#streamchannel").find('span[class="epgtime_now"]').text(); var starttime = epgtime.substr(0,2) + epgtime.substr(3,2); var endtime = epgtime.substr(6,2) + epgtime.substr(9,2); -- cgit v1.2.3 From 498e9030fa16e3d1571dc9e74ccb368fa0c8aa51 Mon Sep 17 00:00:00 2001 From: Alib Date: Sun, 28 Mar 2010 18:15:31 +0200 Subject: starting optimisation --- js/istreamdev.js | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index e084047..04d3eff 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -57,6 +57,7 @@ $.getJSON("bin/backend.php", rec_path = data.rec_path; video_path = data.video_path; audio_path = data.audio_path; + epg_maxdays = data.epg_maxdays; if (streamdev_server != "" && streamdev_server != "null") { addVdr(); gen_formchanlist(); @@ -69,6 +70,16 @@ $.getJSON("bin/backend.php", } }); +function showStatus( timeout, message ) { + if( timeout == 0 ) { + $('#status_box').html(message); + $('#status_box').show(); + setTimeout( function() { showStatus( 1, message ); }, 3000 ); + } else if( timeout == 1 ) { + $('#status_box').hide(); + } +} + function addVdr() { vdrmenu = '
    \n
  • VDR
  • \n'; vdrmenu += '
  • Watch TV
  • '; @@ -962,15 +973,6 @@ function checktimerform() { return false; }; -function showStatus( timeout, message ) { - if( timeout == 0 ) { - $('#status_box').html(message); - $('#status_box').show(); - setTimeout( function() { showStatus( 1, message ); }, 5000 ); - } else if( timeout == 1 ) { - $('#status_box').hide(); - } -} // [/TIMER SECTION] // [EPG SECTION] @@ -1069,18 +1071,13 @@ function gen_epgchanlist() { } function gen_epgdatelist() { -var daymax = 8; var date = new Date(); var date_year = date.getFullYear(); var date_month = date.getMonth()+1; var date_day = date.getDate(); -//var date_hour = str_pad(date.getHours(),2,'0','STR_PAD_LEFT'); -//var date_min = str_pad(date.getMinutes(),2,'0','STR_PAD_LEFT'); -//$('#epg #epg_time').val(date_hour + '' + date_min); -//var date_fulldate = date_year + '-' + str_pad(date_month,2,'0','STR_PAD_LEFT') + '-' + str_pad(date_day,2,'0','STR_PAD_LEFT'); $('#epg #epg_day').html(''); var dayname = new Array( "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ); - for ( i=1;i' + dayname[date.getDay()] + ' ' + date.getDate() + '/' + (date.getMonth()+1) + ''); -- cgit v1.2.3