Remove the listener allResourcesPerDay

It's not strictly necessary since inside the listener is checked that
effortInput is enabled, but for consistency do it the same way as with
effortInput.
This commit is contained in:
Oscar Gonzalez Fernandez 2014-04-11 18:11:12 +02:00
parent 27e5926d8c
commit 466bcdf585

View file

@ -798,6 +798,8 @@ public class FormBinder {
private void deactivatingRecommendedAllocation() { private void deactivatingRecommendedAllocation() {
this.recommendedAllocation = false; this.recommendedAllocation = false;
effortInput.removeEventListener(Events.ON_CHANGE, allHoursInputChange); effortInput.removeEventListener(Events.ON_CHANGE, allHoursInputChange);
allResourcesPerDay.removeEventListener(Events.ON_CHANGE,
allResourcesPerDayChange);
applyDisabledRules(); applyDisabledRules();
disableIfNeededWorkerSearch(); disableIfNeededWorkerSearch();
} }