-CC-1805 Ability to edit a show

Initial check-in...still incomplete.
This commit is contained in:
martin 2011-04-12 00:14:26 -04:00
parent eed8c95343
commit b4f1a6b3b0
11 changed files with 616 additions and 77 deletions

View file

@ -56,7 +56,7 @@ function findHosts(request, callback) {
}
function setAddShowEvents() {
var form = $("#add-show-form");
form.find("h3").click(function(){
@ -129,9 +129,15 @@ function setAddShowEvents() {
form.find("#add_show_day_check-element label").addClass("wrapp-label");
form.find("#add_show_day_check-element br").remove();
form.find("#add_show_no_end").click(function(){
form.find("#add_show_end_date").toggle();
});
function endDateVisibility(){
if(form.find("#add_show_no_end").is(':checked')){
form.find("#add_show_end_date").hide();
} else {
form.find("#add_show_end_date").show();
}
}
endDateVisibility();
form.find("#add_show_no_end").click(endDateVisibility);
createDateInput(form.find("#add_show_start_date"), startDpSelect);
createDateInput(form.find("#add_show_end_date"), endDpSelect);