summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-02-20 19:03:49 +0100
committerFabio Bas <ctrlaltca@gmail.com>2016-02-20 19:03:49 +0100
commitfe10a736c1418ad80ca8bfb15cf5a2985aa96a6f (patch)
tree427b5828708e67207cda92c71b05ab643d32c19d /framework/Web/Javascripts
parentcdaa6d7f9773a1613777f348cdd652527f086b05 (diff)
TJuiAutoComplete: fix parsing of suggestions
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: <prop:Suggestions.ItemTemplate> <%# $this->Data->Field %> </prop:Suggestions.ItemTemplate>
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r--framework/Web/Javascripts/source/prado/activecontrols/activecontrols3.js2
1 files changed, 1 insertions, 1 deletions
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('<div/>').html(item['label']).text());
});
} else {
jQuery.each(result, function(idx, item) {