From 2406ce6434b291e8c331fae43aa8af897e4b1310 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 11 Dec 2013 20:13:14 -0800 Subject: [PATCH] Autocomplete.js - Cleanup --- js/AutoComplete.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/AutoComplete.js b/js/AutoComplete.js index c8d186b909..8304d0e047 100644 --- a/js/AutoComplete.js +++ b/js/AutoComplete.js @@ -99,8 +99,7 @@ cj(function ($) { } else{ $('#crm-contact-toggle-text-' + id_field).text(hidden_text); - $('#' + id_field).val(''); - $('#' + name_field).val(''); + $('#' + id_field + ', #' + name_field).val(''); CRM.api('profile', 'get', {'profile_id' : profileids}, { success: function(result) { $.each(result.values, function (id, values){ -- 2.25.1