From bccb066ff04fa3add398d8d8dbf3d57c7146d1ca Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 18 Mar 2020 19:55:10 +0100 Subject: Autocomplete widget: add modify action to autocomplete field - better layout for previous value --- ishtar_common/templates/blocks/JQueryAutocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/blocks/JQueryAutocomplete.js b/ishtar_common/templates/blocks/JQueryAutocomplete.js index c9af9a58e..47a5db80b 100644 --- a/ishtar_common/templates/blocks/JQueryAutocomplete.js +++ b/ishtar_common/templates/blocks/JQueryAutocomplete.js @@ -26,7 +26,7 @@ $(function() { $(document).on("click", '#id_{{field_id}}_previous_button', function(){ $('#id_{{field_id}}').val($('#id_{{field_id}}_previous').val()); $('#id_select_{{field_id}}').val( - $('#id_{{field_id}}_previous_label').html() + $('#id_{{field_id}}_previous_label').val() ); $('#id_{{field_id}}').change(); }); -- cgit v1.2.3