day selection change

This commit is contained in:
Naomi 2011-02-10 18:40:30 -05:00
parent 82a16e2d43
commit 81d66ebbb6
2 changed files with 8 additions and 1 deletions

View file

@ -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();

View file

@ -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()