ItEr27S06CUAsignacionGrupoRecursosAPlanificacionItEr26S07: When deleting an allocation the apply button is enabled
This commit is contained in:
parent
112e9f0e8b
commit
79d01b14fe
2 changed files with 14 additions and 1 deletions
|
|
@ -157,4 +157,15 @@ class FormBinder {
|
|||
return assignedHoursComponent.getValue();
|
||||
}
|
||||
|
||||
public void setDeleteButtonFor(SpecificAllocationDTO data,
|
||||
Button deleteButton) {
|
||||
deleteButton.addEventListener(Events.ON_CLICK, new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
applyButton.setDisabled(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -303,7 +303,9 @@ public class ResourceAllocationController extends GenericForwardComposer {
|
|||
|
||||
bindResourcesPerDay(appendDecimalbox(item), data);
|
||||
// On click delete button
|
||||
appendButton(item, _("Delete")).addEventListener("onClick",
|
||||
Button deleteButton = appendButton(item, _("Delete"));
|
||||
formBinder.setDeleteButtonFor(data, deleteButton);
|
||||
deleteButton.addEventListener("onClick",
|
||||
new EventListener() {
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue