Attached onBlur event to remove CostCategory after clearing the autocomplete
FEA: ItEr77S17AutomaticBudgeting
This commit is contained in:
parent
a10f37d390
commit
cd63d13805
1 changed files with 13 additions and 0 deletions
|
|
@ -330,6 +330,19 @@ public class CriterionTreeController extends GenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
autocomplete.addEventListener("onBlur", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) {
|
||||||
|
if (autocomplete.getText().isEmpty()) {
|
||||||
|
autocomplete.clear();
|
||||||
|
CriterionDTO assignment = (CriterionDTO) row.getValue();
|
||||||
|
assignment.getCriterion().setCostCategory(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return autocomplete;
|
return autocomplete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue