From: Justin Freeman Date: Wed, 24 Nov 2021 01:20:25 +0000 (+1100) Subject: CIVICRM-1894 CiviCRM Event, remove the superfluous "Are you sure you want to delete... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=69d2b0be10e2642f7a292e122d856ad8ef51bcd3;p=civicrm-core.git CIVICRM-1894 CiviCRM Event, remove the superfluous "Are you sure you want to delete this Event?" confirmation for the Event delete action --- 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 => [