From d8abe291bf07e2c30babfc77c389b1bf3fc4a47b Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 25 Feb 2014 10:58:19 -0500 Subject: [PATCH] CRM-13966 - Remove another unused autocomplete --- CRM/Event/Form/ManageEvent/ScheduleReminders.php | 7 ------- templates/CRM/Event/Form/ManageEvent/ScheduleReminders.tpl | 5 ----- 2 files changed, 12 deletions(-) diff --git a/CRM/Event/Form/ManageEvent/ScheduleReminders.php b/CRM/Event/Form/ManageEvent/ScheduleReminders.php index 099477456a..6fe9c1ffa2 100755 --- a/CRM/Event/Form/ManageEvent/ScheduleReminders.php +++ b/CRM/Event/Form/ManageEvent/ScheduleReminders.php @@ -196,13 +196,6 @@ class CRM_Event_Form_ManageEvent_ScheduleReminders extends CRM_Event_Form_Manage ); $recipientListing->setMultiple(TRUE); - //auto-complete url - $dataUrl = CRM_Utils_System::url('civicrm/ajax/rest', - "className=CRM_Contact_Page_AJAX&fnName=getContactList&json=1&context=activity&reset=1", - FALSE, NULL, FALSE - ); - - $this->assign('dataUrl', $dataUrl); //token input url $tokenUrl = CRM_Utils_System::url('civicrm/ajax/checkemail', 'noemail=1', diff --git a/templates/CRM/Event/Form/ManageEvent/ScheduleReminders.tpl b/templates/CRM/Event/Form/ManageEvent/ScheduleReminders.tpl index 131bd77d57..7817dbd3d3 100755 --- a/templates/CRM/Event/Form/ManageEvent/ScheduleReminders.tpl +++ b/templates/CRM/Event/Form/ManageEvent/ScheduleReminders.tpl @@ -73,15 +73,10 @@ eval( 'tokenClass = { tokenList: "token-input-list-facebook", token: "token-input-token-facebook", tokenDelete: "token-input-delete-token-facebook", selectedToken: "token-input-selected-token-facebook", highlightedToken: "token-input-highlighted-token-facebook", dropdown: "token-input-dropdown-facebook", dropdownItem: "token-input-dropdown-item-facebook", dropdownItem2: "token-input-dropdown-item2-facebook", selectedDropdownItem: "token-input-selected-dropdown-item-facebook", inputToken: "token-input-input-token-facebook" } '); - var sourceDataUrl = "{/literal}{$dataUrl}{literal}"; var tokenDataUrl = "{/literal}{$tokenUrl}{literal}"; var hintText = "{/literal}{ts escape='js'}Type in a partial or complete name of an existing recipient.{/ts}{literal}"; cj( "#recipient_manual_id").tokenInput( tokenDataUrl, { prePopulate: recipient_manual, classes: tokenClass, hintText: hintText }); cj( 'ul.token-input-list-facebook, div.token-input-dropdown-facebook' ).css( 'width', '450px' ); - cj('#source_contact_id').autocomplete( sourceDataUrl, { width : 180, selectFirst : false, hintText: hintText, matchContains: true, minChars: 1 - }).result( function(event, data, formatted) { - }).bind( 'click', function( ) { }); - }); {/literal} -- 2.25.1