diff options
author | Alib <aliboba@free.fr> | 2010-03-25 00:21:23 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-25 00:21:23 +0100 |
commit | 498a9fd1d4fdd300555fbc30648679e0a7b1b01b (patch) | |
tree | 5c254fa7af45b44575e16c1325d46eca68029317 /js/functions.js | |
parent | a02c43d36c20990ae5f6e1bcf29441269fba3177 (diff) | |
download | istreamdev-498a9fd1d4fdd300555fbc30648679e0a7b1b01b.tar.gz istreamdev-498a9fd1d4fdd300555fbc30648679e0a7b1b01b.tar.bz2 |
working on epg
Diffstat (limited to 'js/functions.js')
-rw-r--r-- | js/functions.js | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/js/functions.js b/js/functions.js index 5db31a3..eefbca9 100644 --- a/js/functions.js +++ b/js/functions.js @@ -67,11 +67,23 @@ function openSelectTime(layer,timer_hour,timer_minute) { }
SpinningWheel.addSlot(hours, 'right', now_hour);
- //SpinningWheel.addSlot({ separator: 'h' }, 'readonly shrink');
SpinningWheel.addSlot(minutes, '', now_minute);
SpinningWheel.setCancelAction( function() { $('a').removeClass('active');} );
- 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('')");$('a').removeClass('active'); });
+ SpinningWheel.setDoneAction( function () {
+ var results = SpinningWheel.getSelectedValues();
+ $('#'+layer).html(results.values.join('h'));
+ if ( layer == 'layer_starttime' ) {
+ var forminput = 'timer_starttime';
+ } else if ( layer == 'layer_endtime' ) {
+ var forminput = 'timer_endtime';
+ } else if ( layer == 'layer_epgtime' ) {
+ var forminput = 'epg_time';
+ }
+ //eval ("document.timer." + forminput + ".value = results.values.join('')");
+ $('#'+forminput).val(results.values.join(''));
+ $('a').removeClass('active');
+ });
SpinningWheel.open();
}
|