summaryrefslogtreecommitdiff
path: root/new_timer.html
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-02-22 14:43:49 +0100
committerAlib <aliboba@free.fr>2010-02-22 14:43:49 +0100
commite727e036902f296a2b93d31eea948328cd7a5f85 (patch)
tree16cbf44e2f3cb95d1ff3be9029fbf6536a85a4f8 /new_timer.html
parent10dad4cfe250ac642b8f2af9b986b4f84e84256c (diff)
downloadistreamdev-e727e036902f296a2b93d31eea948328cd7a5f85.tar.gz
istreamdev-e727e036902f296a2b93d31eea948328cd7a5f85.tar.bz2
updated timers template
Diffstat (limited to 'new_timer.html')
-rwxr-xr-xnew_timer.html19
1 files changed, 17 insertions, 2 deletions
diff --git a/new_timer.html b/new_timer.html
index be7fb1b..1d94c06 100755
--- a/new_timer.html
+++ b/new_timer.html
@@ -37,11 +37,19 @@ function updateOrientation() {
frm = document.getElementById(formid);
frm.submit();
}
-function openSelectDate() {
+function openSelectDate(timer_year,timer_month,timer_day) {
var now = new Date();
+ if ( timer_year == null ) {
var now_year = now.getFullYear();
var now_month = now.getMonth()+1;
var now_day = now.getDate();
+ }
+ else
+ {
+ var now_year = timer_year;
+ var now_month = timer_month;
+ var now_day = timer_day;
+ }
var layer = 'layer_date';
var days = { };
var years = { };
@@ -74,10 +82,17 @@ function done_date() {
function cancel_date() {
}
-function openSelectTime(layer) {
+function openSelectTime(layer,timer_hour,timer_minute) {
+ if ( timer_hour == null ) {
var now = new Date();
var now_hour = now.getHours();
var now_minute = now.getMinutes()+1;
+ }
+ else
+ {
+ var now_hour = timer_hour;
+ var now_minute = timer_minute;
+ }
var hours = { };
var minutes = { };