CRM-13863 - Add livePage to case dashboard
authorColeman Watts <coleman@civicrm.org>
Wed, 19 Mar 2014 03:00:41 +0000 (23:00 -0400)
committerColeman Watts <coleman@civicrm.org>
Wed, 19 Mar 2014 03:00:41 +0000 (23:00 -0400)
CRM/Case/Page/DashBoard.php
CRM/Case/Selector/Search.php
templates/CRM/Case/Page/DashBoard.tpl

index 5ce46ede0f74c23bec7a4a79b80c2428c403c2c4..eaba3fa7c59feafd720fec5530a5afb118af5201 100644 (file)
@@ -38,6 +38,8 @@
  */
 class CRM_Case_Page_DashBoard extends CRM_Core_Page {
 
+  public $useLivePageJS = TRUE;
+
   /**
    * Heart of the viewing process. The runner gets all the meta data for
    * the contact and calls the appropriate type of page to view.
@@ -96,6 +98,7 @@ class CRM_Case_Page_DashBoard extends CRM_Core_Page {
     if (!empty($recent)) {
       $this->assign('recentCases', $recent);
     }
+    $this->assign('includeWysiwygEditor', TRUE);
   }
 
   /**
index b550aff7432854ccbc06ba47951bdccecb0cf141..8b34ae6718c299a90a34e4901744dba337486e98 100644 (file)
@@ -223,6 +223,7 @@ class CRM_Case_Selector_Search extends CRM_Core_Selector_Base {
           'url' => 'civicrm/contact/view/case/editClient',
           'qs' => 'reset=1&action=update&id=%%id%%&cid=%%cid%%&context=%%cxt%%' . $extraParams,
           'ref' => 'reassign',
+          'class' => 'medium-popup',
           'title' => ts('Assign to Another Client'),
         ),
       );
index 22b7af6169627d8006ca14da4cfa6cff113355b4..78f0d7ddd51a257d9fbbeed07ba22ed1ac1ab6bf 100644 (file)
@@ -36,7 +36,7 @@
     {if $newClient and $allowToAddNewCase}
       <a href="{$newCaseURL}" class="button"><span><div class="icon add-icon"></div> {ts}Add Case{/ts}</span></a>
     {/if}
-    <a class="button" name="find_my_cases" href="{crmURL p="civicrm/case/search" q="reset=1&case_owner=2&force=1"}"><span>{ts}Find My Cases{/ts}</span></a>
+    <a class="button no-popup" name="find_my_cases" href="{crmURL p="civicrm/case/search" q="reset=1&case_owner=2&force=1"}"><span>{ts}Find My Cases{/ts}</span></a>
 
     <div class="crm-case-dashboard-switch-view-buttons">
         {if $myCases}