8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 11:53:12 +00:00

Fix: Récupère une valeur correcte quand la valeur du tt_input a changé

This commit is contained in:
Maël Kervella 2017-10-07 16:51:21 +00:00
parent 80c37ed561
commit feb00046a5

View file

@ -231,7 +231,7 @@ def typeahead_updater( f_name ):
def typeahead_change( f_name ):
return 'function(evt) { ' \
'if (evt.currentTarget.value === "") {' \
'if ($("#'+input_id(f_name)+'").typeahead("val") === "") {' \
'$("#'+hidden_id(f_name)+'").val(""); ' \
'$("#'+hidden_id(f_name)+'").change();' \
'}' \