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
autocomplete.data("ui-autocomplete");\n
\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
.append("<a><b>" +\n
item.label +\n
\'</b><br><span style="font-size: 70%">\' +\n
item.description + "</span></a>")\n
.append(item_html)\n
.appendTo(ul);\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
* Rename ERP5Site_getCompletionList for naming consistency sake.
......
17
\ No newline at end of file
18
\ 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