add show button removed/readded properly.
This commit is contained in:
parent
b6c26a583b
commit
a32550d625
3 changed files with 30 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue