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

16 lines
360 B

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