From 1734d0855ca7ed8c9706245739f0d15d3bb86707 Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Tue, 11 Oct 2022 08:53:25 +1100 Subject: [PATCH] CIVICRM-2045 Fix spelling mistake showHideSeletorSearch should be showHideSelectorSearch --- CRM/UF/Form/Field.php | 2 +- templates/CRM/UF/Form/Field.tpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/UF/Form/Field.php b/CRM/UF/Form/Field.php index f6376d6780..56ceef8590 100644 --- a/CRM/UF/Form/Field.php +++ b/CRM/UF/Form/Field.php @@ -411,7 +411,7 @@ class CRM_UF_Form_Field extends CRM_Core_Form { ts('Visibility'), CRM_Core_SelectValues::ufVisibility(), TRUE, - ['onChange' => "showHideSeletorSearch(this.value);"] + ['onChange' => "showHideSelectorSearch(this.value);"] ); //CRM-4363 diff --git a/templates/CRM/UF/Form/Field.tpl b/templates/CRM/UF/Form/Field.tpl index 677b34a43f..86948079ff 100644 --- a/templates/CRM/UF/Form/Field.tpl +++ b/templates/CRM/UF/Form/Field.tpl @@ -154,9 +154,9 @@ function showLabel( ) { } {/literal}{if $action neq 8}{literal} -showHideSeletorSearch(); +showHideSelectorSearch(); -function showHideSeletorSearch() { +function showHideSelectorSearch() { var is_search = cj('#is_search_label, #is_search_html'); var in_selector = cj('#in_selector_label, #in_selector_html'); if (cj("#visibility").val() == "User and User Admin Only") { @@ -179,7 +179,7 @@ function showHideSeletorSearch() { } cj("#field_name_1").bind( 'change blur', function( ) { - showHideSeletorSearch( ); + showHideSelectorSearch( ); }); CRM.$(function($) { -- 2.25.1