diff options
author | Alib <aliboba@free.fr> | 2010-02-23 15:43:38 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-02-23 15:43:38 +0100 |
commit | 5a30949b3e0c396f6f97838125ea4ccd8c1688eb (patch) | |
tree | 034b582e3326d2c8fb6ed9f421d70ece547d23e0 /javascript | |
parent | 8ee2b593cdd8bcfead5ce288d7158153df2dcbd9 (diff) | |
download | istreamdev-5a30949b3e0c396f6f97838125ea4ccd8c1688eb.tar.gz istreamdev-5a30949b3e0c396f6f97838125ea4ccd8c1688eb.tar.bz2 |
fixed function.js for edit timer
Diffstat (limited to 'javascript')
-rwxr-xr-x | javascript/functions.js | 6 |
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();
}
|