# HG changeset patch # User veltr # Date 1349962958 -7200 # Node ID 7c3f54ce68afac8566a209fc163e9474cfe012c5 # Parent 91bc8521e3cbd41e878be449858acf3303411556 Merged Completion List back into Facettes diff -r 91bc8521e3cb -r 7c3f54ce68af web/hdalab/static/hdalab/css/facettes.css --- a/web/hdalab/static/hdalab/css/facettes.css Thu Oct 04 12:25:12 2012 +0200 +++ b/web/hdalab/static/hdalab/css/facettes.css Thu Oct 11 15:42:38 2012 +0200 @@ -430,4 +430,57 @@ position: absolute; width: 10px; height: 10px; background: #000000; border-radius: 5px; display: none; } +/* COMPLETION */ +#tagsearch { + width: 100%; font-size: 16px; font-weight: bold; border-style: none; border-bottom: 1px solid #000; +} + +#tagsearch.waiting { + background: url(../img/small-loader.gif) no-repeat right; +} + +ul.ui-autocomplete { + font-family: "Open Sans"; max-width: 230px; + max-height: 400px; overflow-y: auto; overflow-x: hidden; +} + +.wpinfo { + margin-left: 240px; +} + +.ui-menu-item:hover .acwp { + display: block; +} + +.acnb { + float: right; font-size: 12px; margin: 2px 0 0 2px; +} + +.actitle { + font-size: 13px; +} + +.wptitle { + font-size: 13px; font-weight: bold; +} + +.wpimg { + max-width: 80px; max-height: 60px; float: left; margin: 5px 2px 2px 0; border: none; +} + +.wpabstract { + font-size: 11px; +} + +.wpsource { + font-size: 10px; font-style: bold; +} + +.clear { + clear: both; +} + +.actitle strong, .wptitle strong { + color: #c000c0; +} diff -r 91bc8521e3cb -r 7c3f54ce68af web/hdalab/static/hdalab/js/completion.js --- a/web/hdalab/static/hdalab/js/completion.js Thu Oct 04 12:25:12 2012 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,130 +0,0 @@ -var gomNs = { - languageCode: 'fr' -} - -function showResults(data) { - $("#contentcount").html(''+data.count+' ' + ngettext('notice', 'notices', data.count)); - var contentdata = data.contents; - if (contentdata && contentdata.length) { - var _htmlCl = '
' - + _d.description.replace(/(^.{0,160})([\s]|$)(.*)/,'$1…') - + '
'; - _html += '<% print(ellipse(item.abstract,250))%>
<% print(gettext("Source : Wikipédia")) %>
<% }; %>' -); - -acTemplate = _.template( - '<%- item.nb %><% print(ellipse(item.abstract,250))%>
<% }; %>' +); + +acTemplate = _.template( + '<%- item.nb %>