# HG changeset patch # User veltr # Date 1334911894 -7200 # Node ID ebc92daef81555f413f5a9a0a681b18e43bb9924 # Parent ca6382096bb1540e17b0f519fbc3c5a3a66dc9cf First try at autocomplete diff -r ca6382096bb1 -r ebc92daef815 web/hdalab/static/hdalab/css/facettes.css --- a/web/hdalab/static/hdalab/css/facettes.css Mon Mar 19 16:33:50 2012 +0100 +++ b/web/hdalab/static/hdalab/css/facettes.css Fri Apr 20 10:51:34 2012 +0200 @@ -266,7 +266,7 @@ #tagsearchwrap { - width: 50%; + width: 200px; } #tagsearch { @@ -277,6 +277,18 @@ color: #666; font-style: italic; font-weight: normal; } +ul.ui-autocomplete { + width: 200px; font-family: "Open Sans"; +} + +.ui-autocomplete strong { + font-weight: bold; +} + +#tagdata { + float: right; width: 465px; +} + #rightcol { float: left; width: 475px; margin-left: 5px; } diff -r ca6382096bb1 -r ebc92daef815 web/hdalab/static/hdalab/js/gomina.js --- a/web/hdalab/static/hdalab/js/gomina.js Mon Mar 19 16:33:50 2012 +0100 +++ b/web/hdalab/static/hdalab/js/gomina.js Fri Apr 20 10:51:34 2012 +0200 @@ -103,7 +103,7 @@ } -function tagInfo(_taglabel) { +function tagInfo(_taglabel, _filter) { var _urlParam = { "label": _taglabel }; $.getJSON(gomNs.urls['tag_info'], _urlParam, @@ -144,7 +144,9 @@ } */ $("#tagdata").html(_html); }); - addFilter('tag', _taglabel); + if (typeof _filter !== "undefined" && _filter) { + addFilter('tag', _taglabel); + } $("#showlist").removeClass("actif"); } @@ -314,7 +316,7 @@ + _d.description.replace(/(^.{0,160})([\s]|$)(.*)/,'$1…') + '