From 5a30949b3e0c396f6f97838125ea4ccd8c1688eb Mon Sep 17 00:00:00 2001 From: Alib Date: Tue, 23 Feb 2010 15:43:38 +0100 Subject: fixed function.js for edit timer --- javascript/functions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'javascript/functions.js') diff --git a/javascript/functions.js b/javascript/functions.js index e200649..bf32859 100755 --- a/javascript/functions.js +++ b/javascript/functions.js @@ -108,11 +108,11 @@ function openSelectTime(layer,timer_hour,timer_minute) { var hours = { }; var minutes = { }; - for( var i = 00; i < 24; i += 1 ) { + for( var i = 0; i < 24; i += 1 ) { hours[i] = str_pad(i,2,'0','STR_PAD_LEFT'); } - for( var i = 00; i < 60; i += 1 ) { + for( var i = 0; i < 60; i += 1 ) { minutes[i] = str_pad(i,2,'0','STR_PAD_LEFT'); } @@ -121,7 +121,7 @@ function openSelectTime(layer,timer_hour,timer_minute) { SpinningWheel.addSlot(minutes, '', now_minute); SpinningWheel.setCancelAction( function() {} ); - SpinningWheel.setDoneAction(function () {var results = SpinningWheel.getSelectedValues(); document.getElementById(layer).innerHTML = results.values.join('h');if ( layer == 'layer_starttime' ) { var forminput = 'timer_starttime'; } else { var forminput = 'timer_endtime'; }; eval ("document.timer." + forminput + ".value = results.keys.join('')"); }); + SpinningWheel.setDoneAction(function () {var results = SpinningWheel.getSelectedValues(); document.getElementById(layer).innerHTML = results.values.join('h');if ( layer == 'layer_starttime' ) { var forminput = 'timer_starttime'; } else { var forminput = 'timer_endtime'; }; eval ("document.timer." + forminput + ".value = results.values.join('')"); }); SpinningWheel.open(); } -- cgit v1.2.3