CIVICRM-1894 CiviCRM Event, remove the superfluous "Are you sure you want to delete...
authorJustin Freeman <justin@agileware.com.au>
Wed, 24 Nov 2021 01:20:25 +0000 (12:20 +1100)
committerJustin Freeman <justin@agileware.com.au>
Wed, 24 Nov 2021 01:20:25 +0000 (12:20 +1100)
CRM/Event/Page/ManageEvent.php

index 90e5c1a8b1f1e902f579353bcdf5b5542d443f1e..a39eb17a6a32e0308a1fc11ed1bfe4254360d23f 100644 (file)
@@ -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 => [