3494-UI-improvements-grading-templates #21
@ -37,7 +37,7 @@ class EditingGradingTemplateComponentPanel extends GenericPanel<EditingGradingTe
|
|||||||
EditingGradingTemplate::setValidFrom),
|
EditingGradingTemplate::setValidFrom),
|
||||||
LocalDate.class);
|
LocalDate.class);
|
||||||
validFromField.add(new BootstrapDatePicker());
|
validFromField.add(new BootstrapDatePicker());
|
||||||
validFromField.add(new AutoSave());
|
validFromField.add(new AutoSave("changeDate"));
|
||||||
add(validFromField);
|
add(validFromField);
|
||||||
|
|
||||||
add(new TextArea<>("note", LambdaModel.of(
|
add(new TextArea<>("note", LambdaModel.of(
|
||||||
@ -298,6 +298,10 @@ class EditingGradingTemplateComponentPanel extends GenericPanel<EditingGradingTe
|
|||||||
super("input");
|
super("input");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AutoSave(String event) {
|
||||||
|
super(event);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onUpdate(AjaxRequestTarget target) {
|
protected void onUpdate(AjaxRequestTarget target) {
|
||||||
// just trigger the ajax call is enough to update the model object
|
// just trigger the ajax call is enough to update the model object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user