summaryrefslogtreecommitdiff
path: root/js/functions.js
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-25 00:21:23 +0100
committerAlib <aliboba@free.fr>2010-03-25 00:21:23 +0100
commit498a9fd1d4fdd300555fbc30648679e0a7b1b01b (patch)
tree5c254fa7af45b44575e16c1325d46eca68029317 /js/functions.js
parenta02c43d36c20990ae5f6e1bcf29441269fba3177 (diff)
downloadistreamdev-498a9fd1d4fdd300555fbc30648679e0a7b1b01b.tar.gz
istreamdev-498a9fd1d4fdd300555fbc30648679e0a7b1b01b.tar.bz2
working on epg
Diffstat (limited to 'js/functions.js')
-rw-r--r--js/functions.js16
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();
}