Autocomplete.js - Cleanup
authorColeman Watts <coleman@civicrm.org>
Thu, 12 Dec 2013 04:13:14 +0000 (20:13 -0800)
committerColeman Watts <coleman@civicrm.org>
Mon, 6 Jan 2014 19:06:47 +0000 (11:06 -0800)
js/AutoComplete.js

index c8d186b909cf1b8e9f12a32adec615d7ab252726..8304d0e047cdb2055781dfeb834b93d1459c4cb3 100644 (file)
@@ -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){