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/deliverables.js

42 lines
825 B

function deleteDeliverableCost(id) {
var e = $(id),
parent = e.up();
// de-register observers
Element.stopObserving (id + '_cost_type_id')
Element.stopObserving (id + '_units')
// delete the row
e.next().remove();
e.remove();
// fix the markup classes
recalculate_even_odd(parent)
}
function deleteDeliverableHour(id) {
var e = $(id),
parent = e.up();
// de-register observers
Element.stopObserving (id + '_user_id')
Element.stopObserving (id + '_hours')
// delete the row
e.next().remove();
e.remove();
// fix the markup classes
recalculate_even_odd(parent)
}
function confirmChangeType(text, select, originalValue) {
if (originalValue == "") {
return true;
}
var ret = confirm(text);
if (!ret) {
select.setValue(originalValue);
}
return ret;
}