日历与甘特图宽度扩展

This commit is contained in:
Tim 2016-10-25 10:42:29 +08:00
parent 8876dcdcec
commit e3ddfd1841
2 changed files with 310 additions and 314 deletions

View File

@ -1,4 +1,5 @@
<div class="project_r_h" style="width:730px;">
<div class="container-big mb10">
<div class="project_r_h" style="width:970px;">
<h2 class="project_h2"><%= @query.new_record? ? l(:label_calendar) : h(@query.name) %></h2>
</div>
@ -34,7 +35,4 @@
<% end %>
<% html_title(l(:label_calendar)) -%>
<script>
$(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
</script>
</div>

View File

@ -1,4 +1,5 @@
<div class="project_r_h" style="width:730px;">
<div class="container-big mb10">
<div class="project_r_h" style="width:970px;">
<h2 class="project_h2"><% @gantt.view = self %>
<%= @query.new_record? ? l(:label_gantt) : h(@query.name) %></h2>
</div>
@ -302,6 +303,7 @@
<% end %>
<% html_title(l(:label_gantt)) -%>
</div>
<% content_for :header_tags do %>
<%= javascript_include_tag 'raphael' %>
@ -317,7 +319,3 @@
$("#draw_progress_line").change(drawGanttHandler);
});
<% end %>
<script>
$(".project_r_h").parent().css({"width":"730px","background-color":"#fff","padding":"10px","margin-left":"10px","margin-bottom":"10px"});
</script>