OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/assets/javascripts/cost_objects.js

14 lines
418 B

function deleteBudgetItem(id, field) {
$(id + '_' + field).value = 0;
$(id).hide();
}
function deleteMaterialBudgetItem(id) { deleteBudgetItem(id, 'units') }
function deleteLaborBudgetItem(id) { deleteBudgetItem(id, 'hours') }
function confirmChangeType(text, select, originalValue) {
if (originalValue == "") return true;
var ret = confirm(text);
if (!ret) select.setValue(originalValue);
return ret;
}