This commit is contained in:
whimlex 2015-04-11 17:10:26 +08:00
parent 4adfec5640
commit 1d8c2d2a3a
1 changed files with 8 additions and 8 deletions

View File

@ -1,10 +1,11 @@
<script src="/jquery.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
window.onready = function() $(document).ready(function(){
{
$("#issue_project_id").css("width","100%"); $("#issue_project_id").css("width","100%");
$("#issue_project_id").css("overflow ","hidden"); $("#issue_project_id").css("overflow ","hidden");
$("#issue_description").css("margin-left ","80px");
//issue_project_id //issue_project_id
} });
</script> </script>
@ -65,7 +66,6 @@
<%= link_to_function image_tag('edit.png'), '$(this).hide(); $("#issue_description_and_toolbar").show()' unless @issue.new_record? %> <%= link_to_function image_tag('edit.png'), '$(this).hide(); $("#issue_description_and_toolbar").show()' unless @issue.new_record? %>
<%= content_tag 'span', :id => "issue_description_and_toolbar", :style => (@issue.new_record? ? nil : 'display:none') do %> <%= content_tag 'span', :id => "issue_description_and_toolbar", :style => (@issue.new_record? ? nil : 'display:none') do %>
<%= f.text_area :description, <%= f.text_area :description,
:rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),
:accesskey => accesskey(:edit), :accesskey => accesskey(:edit),
:class => "w583", :class => "w583",