Skip to content
Snippets Groups Projects
Commit e69d1a1e authored by colemanw's avatar colemanw
Browse files

CRM-13863 - Cleanup note comment ajax

parent a10432db
Branches
Tags
No related merge requests found
......@@ -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'),
),
);
......
......@@ -178,6 +178,7 @@
+ response['values'][i].modified_date
+ '</td><td>'
+ '<a href="'+ urlTemplate + response['values'][i].createdById +'">'+ response['values'][i].createdBy +'</a>'
+ '</td><td>' // FIXME: attachments
+ '</td><td>'+ commentAction.replace(/{cid}/g, response['values'][i].createdById).replace(/{id}/g, response['values'][i].id) +'</td></tr>'
commentRows['cnote_'+ noteId][response['values'][i].id] = str;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment