CRM-13863 - Cleanup note comment ajax
authorColeman Watts <coleman@civicrm.org>
Thu, 9 Jan 2014 20:26:35 +0000 (12:26 -0800)
committerColeman Watts <coleman@civicrm.org>
Thu, 9 Jan 2014 21:21:44 +0000 (13:21 -0800)
CRM/Contact/Page/View/Note.php
templates/CRM/Contact/Page/View/Note.tpl

index 1757db6cbec5e608e68db3028fab2b34a44e905e..3bc1b747ce1dcab5b69412078a18ed110a715fb6 100644 (file)
@@ -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+=\'&amp;confirmed=1\'; else return false;"',
           'title' => ts('Delete Comment'),
         ),
       );
index d34a4cfc3696655e3200e87b24f514c9f9deb3e2..61e9d350782911ce57e41f046ecd8aedf441cd24 100644 (file)
                         + 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;