This is an automated email from the ASF dual-hosted git repository.
solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
The following commit(s) were added to refs/heads/master by this push:
new 3e02d26ac [OPENMEETINGS-2801] file delete via trash button click is
fixed
3e02d26ac is described below
commit 3e02d26acf49a41b28d0a4f32dc6b98b322f57e2
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Sat Oct 4 15:02:52 2025 +0700
[OPENMEETINGS-2801] file delete via trash button click is fixed
---
.../openmeetings/web/common/tree/FileTreePanel.java | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/tree/FileTreePanel.java
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/tree/FileTreePanel.java
index bf24004cc..2a597a549 100644
---
a/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/tree/FileTreePanel.java
+++
b/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/tree/FileTreePanel.java
@@ -162,7 +162,6 @@ public abstract class FileTreePanel extends Panel {
@Override
public void onConfigure(JQueryBehavior behavior) {
super.onConfigure(behavior);
- behavior.setOption("hoverClass",
Options.asString("trash-toolbar-hover"));
behavior.setOption("accept",
Options.asString(".recorditem, .fileitem"));
}
@@ -211,14 +210,6 @@ public abstract class FileTreePanel extends Panel {
}
}));
trashToolbar.add(trash.setOutputMarkupId(true));
- trash.add(new AjaxEventBehavior("confirmed.bs.confirmation") {
- private static final long serialVersionUID = 1L;
-
- @Override
- protected void onEvent(AjaxRequestTarget target) {
- deleteAll(target);
- }
- });
ConfirmationBehavior trashConfirm = new
ConfirmationBehavior(newOkCancelDangerConfirmCfg(trashToolbar,
getString("80")).withContent(getString("713"))) {
private static final long serialVersionUID = 1L;
@@ -228,7 +219,14 @@ public abstract class FileTreePanel extends Panel {
return !readOnly && !selected.isEmpty();
}
};
- trash.add(trashConfirm);
+ trash.add(trashConfirm, new
AjaxEventBehavior("confirmed.bs.confirmation") {
+ private static final long serialVersionUID = 1L;
+
+ @Override
+ protected void onEvent(AjaxRequestTarget target) {
+ deleteAll(target);
+ }
+ });
form.add(trees.add(tree).setOutputMarkupId(true));
updateSizes();