diff --git a/admin/schedule.php b/admin/schedule.php index 08d58789..10da4092 100644 --- a/admin/schedule.php +++ b/admin/schedule.php @@ -58,7 +58,7 @@ exit; } - echo "
"; foreach($locations AS $id=>$name) { @@ -171,6 +171,10 @@ } } }); + $(window).resize(function() { + placeEvents(); + } + ); }); function changeDate() { @@ -194,11 +198,13 @@ var tablecellid=eventobj.hour+'_'+eventobj.minute+'_'+eventobj.location; var eheight=((eventobj.duration/15)*=$ROWHEIGHT?>)- echo $BORDERSIZE*2; ?>; + var ewidth=$("#"+tablecellid).width()- echo $BORDERSIZE; ?>; var p=$("#"+tablecellid).offset(); $("#"+item.id).css(p); $("#"+item.id).show(); $("#"+item.id).height(eheight); + $("#"+item.id).width(ewidth); } ); } |
---|