From fe10a736c1418ad80ca8bfb15cf5a2985aa96a6f Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sat, 20 Feb 2016 19:03:49 +0100 Subject: TJuiAutoComplete: fix parsing of suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If no “textCssClass” has been defined, we could get as the label value both a simple text string or an html snippet. Fix parsing for the former case: <%# $this->Data->Field %> --- .../Web/Javascripts/source/prado/activecontrols/activecontrols3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web') diff --git a/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js b/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js index 111277a1..a244b236 100644 --- a/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js @@ -174,7 +174,7 @@ Prado.WebUI.TJuiAutoComplete = jQuery.klass(Prado.WebUI.TActiveTextBox, if(that.options.textCssClass===undefined) { jQuery.each(result, function(idx, item) { - result[idx]['value']=jQuery.trim(jQuery(item['label']).text()); + result[idx]['value']=jQuery.trim(jQuery('
').html(item['label']).text()); }); } else { jQuery.each(result, function(idx, item) { -- cgit v1.2.3