diff --git a/application/controllers/ScheduleController.php b/application/controllers/ScheduleController.php index 55996a7d8..14b8f61d8 100644 --- a/application/controllers/ScheduleController.php +++ b/application/controllers/ScheduleController.php @@ -310,6 +310,7 @@ class ScheduleController extends Zend_Controller_Action $data[$j["name"]] = $j["value"]; } $data['add_show_hosts'] = $this->_getParam('hosts'); + $data['add_show_day_check'] = $this->_getParam('days'); $formWhat = new Application_Form_AddShowWhat(); $formWho = new Application_Form_AddShowWho(); diff --git a/public/js/airtime/schedule/add-show.js b/public/js/airtime/schedule/add-show.js index 091aedf88..7284e971a 100644 --- a/public/js/airtime/schedule/add-show.js +++ b/public/js/airtime/schedule/add-show.js @@ -138,7 +138,13 @@ function setAddShowEvents() { } }).get(); - $.post("/Schedule/add-show", {format: "json", data: data, hosts: hosts}, function(json){ + var days = $('#add_show_day_check-element input').map(function() { + if($(this).attr("checked")) { + return $(this).val(); + } + }).get(); + + $.post("/Schedule/add-show", {format: "json", data: data, hosts: hosts, days: days}, function(json){ if(json.form) { $("#add-show-form") .empty()