*/
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'),
'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'),
),
);
+ 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;