From c0c6cb48c79c752daf8064f16faaa0bcc011f901 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 26 Aug 2016 12:40:05 +0200 Subject: Autocomplete widget: larger and full content on hover (refs #3067) --- ishtar_common/static/media/style.css | 2 +- ishtar_common/templates/blocks/JQueryAutocomplete.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'ishtar_common') diff --git a/ishtar_common/static/media/style.css b/ishtar_common/static/media/style.css index e474bea08..42381afa9 100644 --- a/ishtar_common/static/media/style.css +++ b/ishtar_common/static/media/style.css @@ -710,7 +710,7 @@ ul.form .help_text{ } .autocomplete{ - width:300px; + width:350px; } .delete td{ diff --git a/ishtar_common/templates/blocks/JQueryAutocomplete.js b/ishtar_common/templates/blocks/JQueryAutocomplete.js index 16ffef3a0..53a5e18ae 100644 --- a/ishtar_common/templates/blocks/JQueryAutocomplete.js +++ b/ishtar_common/templates/blocks/JQueryAutocomplete.js @@ -37,4 +37,10 @@ $(function() { }); $('#{{item_id}}').change(); {% endfor %}{% endif %} + + $('#id_{{field_id}}').change(function(){ + $("#id_select_{{field_id}}").attr('title', $('#id_select_{{field_id}}').val()); + }); + + $('#id_{{field_id}}').change(); }); -- cgit v1.2.3