day selection change
This commit is contained in:
parent
82a16e2d43
commit
81d66ebbb6
2 changed files with 8 additions and 1 deletions
|
@ -310,6 +310,7 @@ class ScheduleController extends Zend_Controller_Action
|
||||||
$data[$j["name"]] = $j["value"];
|
$data[$j["name"]] = $j["value"];
|
||||||
}
|
}
|
||||||
$data['add_show_hosts'] = $this->_getParam('hosts');
|
$data['add_show_hosts'] = $this->_getParam('hosts');
|
||||||
|
$data['add_show_day_check'] = $this->_getParam('days');
|
||||||
|
|
||||||
$formWhat = new Application_Form_AddShowWhat();
|
$formWhat = new Application_Form_AddShowWhat();
|
||||||
$formWho = new Application_Form_AddShowWho();
|
$formWho = new Application_Form_AddShowWho();
|
||||||
|
|
|
@ -138,7 +138,13 @@ function setAddShowEvents() {
|
||||||
}
|
}
|
||||||
}).get();
|
}).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) {
|
if(json.form) {
|
||||||
$("#add-show-form")
|
$("#add-show-form")
|
||||||
.empty()
|
.empty()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue