Skip to content

Commit

Permalink
Closing toggle menu when editing Sched Tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgrosso committed Dec 19, 2024
1 parent 024c7d8 commit 9263b0a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,10 @@ public void onClick(final AjaxRequestTarget target, final T ignore) {

@Override
public void onClick(final AjaxRequestTarget target, final T ignore) {
SchedTaskDirectoryPanel.this.getTogglePanel().close(target);
send(SchedTaskDirectoryPanel.this, Broadcast.EXACT,
new AjaxWizard.EditItemActionEvent<>(
restClient.readTask(taskType, model.getObject().getKey()),
target).setTitleModel(
restClient.readTask(taskType, model.getObject().getKey()), target).setTitleModel(
new StringResourceModel("inner.task.edit",
SchedTaskDirectoryPanel.this,
Model.of(Pair.of(ActionLink.ActionType.EDIT, model.getObject())))));
Expand All @@ -294,7 +294,7 @@ public void onClick(final AjaxRequestTarget target, final T ignore) {
@Override
public void onClick(final AjaxRequestTarget target, final T ignore) {
SchedTaskDirectoryPanel.this.getTogglePanel().close(target);
final T clone = SerializationUtils.clone(model.getObject());
T clone = SerializationUtils.clone(model.getObject());
clone.setKey(null);
send(SchedTaskDirectoryPanel.this, Broadcast.EXACT,
new AjaxWizard.EditItemActionEvent<>(clone, target).setTitleModel(
Expand Down

0 comments on commit 9263b0a

Please sign in to comment.