CRM-13863 - Consolidate livePage.js handling in parent page class
[civicrm-core.git] / CRM / Campaign / Page / SurveyType.php
index 2c4cda344b3f7e83e0af5b7f84adda8062b29d0a..2fe8db425dfefd56a7ffda062bd148cd7f059cad 100644 (file)
@@ -38,6 +38,8 @@
  */
 class CRM_Campaign_Page_SurveyType extends CRM_Core_Page_Basic {
 
+  public $useLivePageJS = TRUE;
+
   /**
    * The action links that we need to display for the browse screen
    *
@@ -155,9 +157,6 @@ class CRM_Campaign_Page_SurveyType extends CRM_Core_Page_Basic {
    * @static
    */
   function browse() {
-    if (CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'ajax_popups_enabled', NULL, TRUE)) {
-      CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'js/crm.livePage.js');
-    }
     $this->assign('includeWysiwygEditor', TRUE);
 
     $campaingCompId = CRM_Core_Component::getComponentID('CiviCampaign');