From 2684dcd0359c56ec7d7a1c6051a3ccf9598a873a Mon Sep 17 00:00:00 2001 From: tlw72 Date: Tue, 21 Sep 2010 14:04:01 +0000 Subject: [PATCH] Commented out customForm.acSelector.focus(), which was clearing ac help text --- productMods/edit/forms/js/customFormWithAutocomplete.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/productMods/edit/forms/js/customFormWithAutocomplete.js b/productMods/edit/forms/js/customFormWithAutocomplete.js index cbd89ff3..3bcd5661 100644 --- a/productMods/edit/forms/js/customFormWithAutocomplete.js +++ b/productMods/edit/forms/js/customFormWithAutocomplete.js @@ -183,7 +183,8 @@ var customForm = { } else { customForm.initFormFullView(); - customForm.acSelector.focus(); + // TW Setting focus here was clearing autocomplete help text, so commented it out + // customForm.acSelector.focus(); } }); @@ -465,7 +466,7 @@ var customForm = { var typeText; if (!this.acSelector.val()) { - typeText = getTypeNameForLabels(); + typeText = this.getTypeNameForLabels(); this.acSelector.val("Select an existing " + typeText + " or create a new one.") .addClass(this.acHelpTextClass); }