diff --git a/app/views/paid_time_off/index.html.erb b/app/views/paid_time_off/index.html.erb index f1ceeca..59685d0 100644 --- a/app/views/paid_time_off/index.html.erb +++ b/app/views/paid_time_off/index.html.erb @@ -3,14 +3,14 @@
-
+
PTO Calendar
-
+
@@ -24,7 +24,7 @@
-
+
<%= form_for @schedule, :url => "#",:html => {:id => "cal_update"} do |s|%>
<%= s.label :event_name, "Event Name", {:class => "control-label"}%> @@ -116,8 +116,9 @@ $('.date_picker').daterangepicker({ }); $(document).ready(function () { - drawChart1() - drawChart2() + drawChart1(), + drawChart2(), + resizeTopWidgets() }); google.load("visualization", "1", { @@ -192,6 +193,11 @@ function drawChart2() { chart.draw(data, options); } +function resizeTopWidgets(){ + var calHeight = $("#calendarDiv").height(); + $("#scheduleDiv").css({'height':calHeight}); +}; + $("#cal_update_submit").click(function(event) { var valuesToSubmit = $("#cal_update").serialize(); event.preventDefault();