summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-28 18:15:31 +0200
committerAlib <aliboba@free.fr>2010-03-28 18:15:31 +0200
commit498e9030fa16e3d1571dc9e74ccb368fa0c8aa51 (patch)
tree4f1f31b410a916df47abdac6471b1547d2de3065
parent3d82bce94b4d00ce573418dc6444694e2dc8765c (diff)
downloadistreamdev-498e9030fa16e3d1571dc9e74ccb368fa0c8aa51.tar.gz
istreamdev-498e9030fa16e3d1571dc9e74ccb368fa0c8aa51.tar.bz2
starting optimisation
-rwxr-xr-xHISTORY2
-rw-r--r--js/istreamdev.js27
2 files changed, 13 insertions, 16 deletions
diff --git a/HISTORY b/HISTORY
index e12afe0..acdadc9 100755
--- a/HISTORY
+++ b/HISTORY
@@ -11,7 +11,7 @@ xx.xx.xxxx - 0.1.0-alpha1
- Added recording from Channel info.
- Encoding status message is now updated live.
- Added new status "Encoding finished" for recording and videos files. It appears without "*" character before the name in Home sessions menu too.
-
+- Added Electronic Program Guide.
01.03.2010 - 0.3.7
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 = ' <ul class="rounded">\n<li><span class="menutitle">VDR</span></li>\n';
vdrmenu += ' <li class="arrow"><a id="categories_but" href="#"><img class="menuicon" src="img/tv.png" /><span class="menuname">Watch TV</span></a></li>';
@@ -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('<option value="0">Today</option>');
var dayname = new Array( "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" );
- for ( i=1;i<daymax;i++ ) {
+ for ( i=1;i<epg_maxdays;i++ ) {
date_milli=date.getTime();
date.setTime(date_milli+86400000);
$('#epg #epg_day').append('<option value="' + i + '">' + dayname[date.getDay()] + ' ' + date.getDate() + '/' + (date.getMonth()+1) + '</option>');