8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-30 08:32:26 +00:00

Fix: Reset aussi la value dans le hidden quand on reset le tt_input

This commit is contained in:
Maël Kervella 2017-10-07 16:48:19 +00:00
parent 957dc567e2
commit 7f52651a6c

View file

@ -176,7 +176,8 @@ def typeahead_js( f_name, f_value, t_choices, t_match_func ) :
return render_tag( 'script', content=mark_safe( js_content ) )
def reset_input( f_name, f_value ) :
return '$("#'+input_id(f_name)+'").val("");'
return '$("#'+input_id(f_name)+'").typeahead("val","");\n' \
'$("#'+hidden_id(f_name)+'").val("");'
def default_choices( f_value ) :
return '[' + \