[#6574] Add button for multiple Labor Budgets

This commit is contained in:
Eric Davis
2011-10-11 10:17:47 -07:00
parent f0445324ea
commit 237b220795
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -68,6 +68,10 @@ jQuery(function($) {
}
},
showDeliverableAddButton = function() {
$('.add-labor a').hide().last().show();
},
addNewDeliverableFinance = function(financeType) {
var t = $('#labor-budget-template').tmpl({});
var countOfExisting = $("#deliverable-labor tbody tr").size();
@@ -75,8 +79,10 @@ jQuery(function($) {
var newContent = t.html().replace(/\[0\]/g, "[" + recordLocation + "]");
$("<tr>" + newContent + '</tr>').appendTo('#deliverable-labor tbody');
showDeliverableAddButton();
},
showDeliverableAddButton();
toggleSpecificDeliverableFields($('form.deliverable'));
$('select#deliverable_type').change(function() {