Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-02-18-07-54-54
[civicrm-core.git] / CRM / Admin / Page / ScheduleReminders.php
index 6c684af78d03721e304399b02c0a914a0cffef90..b42ee6090122b8f26b4e872b99a5e56a86e8dcb2 100644 (file)
@@ -73,14 +73,12 @@ class CRM_Admin_Page_ScheduleReminders extends CRM_Core_Page_Basic {
         ),
         CRM_Core_Action::ENABLE => array(
           'name' => ts('Enable'),
-          'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_Core_BAO_ActionSchedule' . '\',\'' . 'disable-enable' . '\' );"',
-          'ref' => 'enable-action',
+          'ref' => 'crm-enable-disable',
           'title' => ts('Enable Label Format'),
         ),
         CRM_Core_Action::DISABLE => array(
           'name' => ts('Disable'),
-          'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_Core_BAO_ActionSchedule' . '\',\'' . 'enable-disable' . '\' );"',
-          'ref' => 'disable-action',
+          'ref' => 'crm-enable-disable',
           'title' => ts('Disable Label Format'),
         ),
         CRM_Core_Action::DELETE => array(
@@ -130,6 +128,7 @@ class CRM_Admin_Page_ScheduleReminders extends CRM_Core_Page_Basic {
    * @static
    */
   function browse($action = NULL) {
+    CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'js/crm.livePage.js');
     // Get list of configured reminders
     $reminderList = CRM_Core_BAO_ActionSchedule::getList();