From 498a9fd1d4fdd300555fbc30648679e0a7b1b01b Mon Sep 17 00:00:00 2001 From: Alib Date: Thu, 25 Mar 2010 00:21:23 +0100 Subject: working on epg --- js/functions.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'js/functions.js') 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(); } -- cgit v1.2.3