From 71e4e1fbc73bfc9874c772ffcce123fdb4a87ce5 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Wed, 15 Oct 2025 06:11:27 +0000 Subject: [PATCH] * [bug#65643] Add the confirm tip for delete doc in my contribute page. --- module/my/config/table.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/module/my/config/table.php b/module/my/config/table.php index 448234e64d..95451b9404 100644 --- a/module/my/config/table.php +++ b/module/my/config/table.php @@ -1197,10 +1197,12 @@ $config->my->doc->actionList['edit']['text'] = $lang->edit; $config->my->doc->actionList['edit']['hint'] = $lang->edit; $config->my->doc->actionList['edit']['url'] = array('module' => 'doc', 'method' => 'edit', 'params' => "docID={id}"); -$config->my->doc->actionList['delete']['icon'] = 'trash'; -$config->my->doc->actionList['delete']['text'] = $lang->delete; -$config->my->doc->actionList['delete']['hint'] = $lang->delete; -$config->my->doc->actionList['delete']['url'] = array('module' => 'doc', 'method' => 'delete', 'params' => "docID={id}"); +$config->my->doc->actionList['delete']['icon'] = 'trash'; +$config->my->doc->actionList['delete']['text'] = $lang->delete; +$config->my->doc->actionList['delete']['hint'] = $lang->delete; +$config->my->doc->actionList['delete']['url'] = array('module' => 'doc', 'method' => 'delete', 'params' => "docID={id}"); +$config->my->doc->actionList['delete']['className'] = 'ajax-submit'; +$config->my->doc->actionList['delete']['data-confirm'] = array('message' => $lang->doc->confirmDelete); $config->my->doc->dtable = new stdclass(); $config->my->doc->dtable->fieldList['id']['name'] = 'id';