From 10d99171582e17fe26b11e93bdfe319559fd80ad Mon Sep 17 00:00:00 2001 From: Alib Date: Thu, 18 Mar 2010 10:35:42 +0100 Subject: fixed active timer --- js/istreamdev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/istreamdev.js b/js/istreamdev.js index 1b2a160..764b521 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -787,7 +787,7 @@ $('.submit_form').tap(function(event) { } var timer_id = $("input#timer_id").val(); var timer_chan = $("select#timer_chan").val(); - var timer_active = $("input#timer_active").val(); + var timer_active = $("input#timer_active").attr('checked')?1:0; var dataString = 'action=editTimer&id=' + timer_id + '&active=' + timer_active + '&name=' + encodeURIComponent(timer_name) + '&channumber=' + timer_chan + '&date=' + timer_date + '&starttime=' + timer_starttime + '&endtime=' + timer_endtime; $.getJSON("bin/backend.php", dataString, -- cgit v1.2.3