From 69d2b0be10e2642f7a292e122d856ad8ef51bcd3 Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Wed, 24 Nov 2021 12:20:25 +1100 Subject: [PATCH] CIVICRM-1894 CiviCRM Event, remove the superfluous "Are you sure you want to delete this Event?" confirmation for the Event delete action --- CRM/Event/Page/ManageEvent.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/CRM/Event/Page/ManageEvent.php b/CRM/Event/Page/ManageEvent.php index 90e5c1a8b1..a39eb17a6a 100644 --- a/CRM/Event/Page/ManageEvent.php +++ b/CRM/Event/Page/ManageEvent.php @@ -53,7 +53,6 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page { if (!(self::$_actionLinks)) { // helper variable for nicer formatting $copyExtra = ts('Are you sure you want to make a copy of this Event?'); - $deleteExtra = ts('Are you sure you want to delete this Event?'); self::$_actionLinks = [ CRM_Core_Action::DISABLE => [ @@ -70,7 +69,6 @@ class CRM_Event_Page_ManageEvent extends CRM_Core_Page { 'name' => ts('Delete'), 'url' => CRM_Utils_System::currentPath(), 'qs' => 'action=delete&id=%%id%%', - 'extra' => 'onclick = "return confirm(\'' . $deleteExtra . '\');"', 'title' => ts('Delete Event'), ], CRM_Core_Action::COPY => [ -- 2.25.1