add show button removed/readded properly.

This commit is contained in:
Naomi 2011-02-10 11:34:55 -05:00
parent b6c26a583b
commit a32550d625
3 changed files with 30 additions and 5 deletions

View file

@ -15,7 +15,10 @@ function makeAddShowButton(){
var z = $("#schedule-add-show").width();
$("#schedule_calendar").width(y-z-50);
$("#schedule_calendar").fullCalendar('render');
$(this).remove();
var td = $(this).parent();
$(td).prev().remove();
$(td).remove();
});
}
@ -68,7 +71,7 @@ function viewDisplay( view ) {
}
if($("#add-show-form").length == 1 && $('.fc-header-left tbody td').length === 5) {
if(($("#add-show-form").length == 1) && ($('.fc-header-left tbody td').length == 5)) {
makeAddShowButton();
}
}