From e69d1a1e6aa6e4d28b800a3f839f1fd571dcce62 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 9 Jan 2014 12:26:35 -0800 Subject: [PATCH] CRM-13863 - Cleanup note comment ajax --- CRM/Contact/Page/View/Note.php | 2 -- templates/CRM/Contact/Page/View/Note.tpl | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Contact/Page/View/Note.php b/CRM/Contact/Page/View/Note.php index 1757db6cbe..3bc1b747ce 100644 --- a/CRM/Contact/Page/View/Note.php +++ b/CRM/Contact/Page/View/Note.php @@ -301,7 +301,6 @@ class CRM_Contact_Page_View_Note extends CRM_Core_Page { */ static function &commentLinks() { if (!(self::$_commentLinks)) { - $deleteExtra = ts('Are you sure you want to delete this comment?'); self::$_commentLinks = array( CRM_Core_Action::VIEW => array( 'name' => ts('View'), @@ -319,7 +318,6 @@ class CRM_Contact_Page_View_Note extends CRM_Core_Page { 'name' => ts('Delete'), 'url' => 'civicrm/contact/view/note', 'qs' => 'action=delete&reset=1&cid=%%cid%%&id={id}&selectedChild=note', - 'extra' => 'onclick = "if (confirm(\'' . $deleteExtra . '\') ) this.href+=\'&confirmed=1\'; else return false;"', 'title' => ts('Delete Comment'), ), ); diff --git a/templates/CRM/Contact/Page/View/Note.tpl b/templates/CRM/Contact/Page/View/Note.tpl index d34a4cfc36..61e9d35078 100644 --- a/templates/CRM/Contact/Page/View/Note.tpl +++ b/templates/CRM/Contact/Page/View/Note.tpl @@ -178,6 +178,7 @@ + response['values'][i].modified_date + '' + ''+ response['values'][i].createdBy +'' + + '' // FIXME: attachments + ''+ commentAction.replace(/{cid}/g, response['values'][i].createdById).replace(/{id}/g, response['values'][i].id) +'' commentRows['cnote_'+ noteId][response['values'][i].id] = str; -- 2.25.1