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

Contributed by Philo Hermans
This commit is contained in:
Eric Davis committed 2010-10-14 11:36:17 -07:00
1 parent 3b5c008a65
commit 80d4c7bfa6
2 files changed
+8 -1

No files matched your search

+5 -1
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, :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'}) %> <%= 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> </table>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
+3
View File
@@ -22,6 +22,9 @@ jQuery(function($) {
$('#expand_terms').click( function(){ $('#expand_terms').click( function(){
$(this).next().slideToggle(); $(this).next().slideToggle();
$(this).toggleClass('alt'); $(this).toggleClass('alt');
var new_height = $('#contract-terms .info').height() - $('#contract-terms .finance').height() + 30;
$('#contract-terms .stretch').css('height', new_height);
}); });
showDeliverableTotal = function() { showDeliverableTotal = function() {