Commit ee990ad7 authored by Arnaud Fontaine's avatar Arnaud Fontaine

erp5_autocompletion_ui: Consider that description may not be needed, thus only...

erp5_autocompletion_ui: Consider that description may not be needed, thus only one line, the label, is displayed.
parent b0530a15
...@@ -101,11 +101,14 @@ $(function() {\n ...@@ -101,11 +101,14 @@ $(function() {\n
autocomplete.data("ui-autocomplete");\n autocomplete.data("ui-autocomplete");\n
\n \n
autocomplete._renderItem = function(ul, item) {\n autocomplete._renderItem = function(ul, item) {\n
item_html = "<a><b>" + item.label + "</b>";\n
if(item.description)\n
item_html += \'<br><span style="font-size: 70%">\' +\n
item.description + "</span>";\n
\n
item_html += "</a>";\n
return $("<li></li>").data("item.autocomplete", item)\n return $("<li></li>").data("item.autocomplete", item)\n
.append("<a><b>" +\n .append(item_html)\n
item.label +\n
\'</b><br><span style="font-size: 70%">\' +\n
item.description + "</span></a>")\n
.appendTo(ul);\n .appendTo(ul);\n
};\n };\n
\n \n
......
2014-02-07 arnaud.fontaine
* Consider that description may not be needed, thus only one line, the label, is displayed.
2014-02-07 arnaud.fontaine 2014-02-07 arnaud.fontaine
* Rename ERP5Site_getCompletionList for naming consistency sake. * Rename ERP5Site_getCompletionList for naming consistency sake.
......
17 18
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment