From c7bba1ae8919d305e0d9dc7a50820af50ea26a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Arag=C3=B3n?= Date: Mon, 25 Feb 2019 14:40:33 -0500 Subject: [PATCH] fix delete document - refs #2681 --- main/inc/lib/document.lib.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main/inc/lib/document.lib.php b/main/inc/lib/document.lib.php index 27c3bb260e..a683ae1881 100644 --- a/main/inc/lib/document.lib.php +++ b/main/inc/lib/document.lib.php @@ -7156,12 +7156,10 @@ class DocumentManager $btn = Display::url( $iconEn, - '#', + api_get_self()."?$courseParams&$urlDeleteParams", [ - 'data-item-title' => $titleToShow, - 'data-href' => api_get_self()."?$courseParams&$urlDeleteParams", - 'data-toggle' => 'modal', - 'data-target' => '#confirm-delete', + 'title' => get_lang('Do you want to delete the file?').': '.$titleToShow, + 'class' => 'delete-swal', ] );