summaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'javascript')
-rwxr-xr-xjavascript/functions.js6
1 files changed, 3 insertions, 3 deletions
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();
}