[#4510] Stretch the right rail of the Contract Finances.

Contributed by Philo Hermans
This commit is contained in:
Eric Davis
2010-10-14 11:34:26 -07:00
parent 3b5c008a65
commit 80d4c7bfa6
2 changed files with 8 additions and 1 deletions

View File

@@ -79,7 +79,11 @@
<%= show_budget_field(resource, :billable_rate, 'nil?', :format => :format_hourly_rate, :html_options => {:class => 'contract-billable-rate total'}) %>
<%= show_budget_field(resource, :estimated_hour_spent, :estimated_hour_budget, :format => :l_hours, :html_options => {:class => 'contract-estimated-hour total'}) %>
<tr>
<td class="stretch" colspan="3">
<!-- Stretch table height -->
</td>
</tr>
</table>
<div class="clear"></div>
</div>

View File

@@ -22,6 +22,9 @@ jQuery(function($) {
$('#expand_terms').click( function(){
$(this).next().slideToggle();
$(this).toggleClass('alt');
var new_height = $('#contract-terms .info').height() - $('#contract-terms .finance').height() + 30;
$('#contract-terms .stretch').css('height', new_height);
});
showDeliverableTotal = function() {