kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
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.
40 lines
785 B
40 lines
785 B
15 years ago
|
function deleteMaterialBudgetItem(id) {
|
||
15 years ago
|
var e = $(id),
|
||
|
parent = e.up();
|
||
15 years ago
|
|
||
|
// de-register observers
|
||
|
Element.stopObserving (id + '_cost_type_id')
|
||
|
Element.stopObserving (id + '_units')
|
||
|
|
||
|
// delete the row
|
||
15 years ago
|
e.remove();
|
||
|
|
||
|
// fix the markup classes
|
||
|
recalculate_even_odd(parent)
|
||
15 years ago
|
}
|
||
|
|
||
15 years ago
|
function deleteLaborBudgetItem(id) {
|
||
15 years ago
|
var e = $(id),
|
||
15 years ago
|
parent = e.up();
|
||
15 years ago
|
|
||
15 years ago
|
// de-register observers
|
||
|
Element.stopObserving (id + '_user_id')
|
||
|
Element.stopObserving (id + '_hours')
|
||
|
|
||
|
// delete the row
|
||
15 years ago
|
e.remove();
|
||
|
|
||
|
// fix the markup classes
|
||
|
recalculate_even_odd(parent)
|
||
15 years ago
|
}
|
||
15 years ago
|
|
||
|
function confirmChangeType(text, select, originalValue) {
|
||
|
if (originalValue == "") {
|
||
|
return true;
|
||
|
}
|
||
|
var ret = confirm(text);
|
||
|
if (!ret) {
|
||
|
select.setValue(originalValue);
|
||
|
}
|
||
|
return ret;
|
||
|
}
|