mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 19:33:11 +00:00
Notifie l'objet quand on change manuellement sa valeur
This commit is contained in:
parent
8f9a92cf2c
commit
5bd110fbfc
1 changed files with 2 additions and 0 deletions
|
@ -182,6 +182,7 @@ def typeahead_datasets( f_name ) :
|
||||||
def typeahead_updater( f_name ):
|
def typeahead_updater( f_name ):
|
||||||
return 'function(evt, item) { ' \
|
return 'function(evt, item) { ' \
|
||||||
'$("#'+hidden_id(f_name)+'").val( item.key ); ' \
|
'$("#'+hidden_id(f_name)+'").val( item.key ); ' \
|
||||||
|
'$("#'+hidden_id(f_name)+'").change();' \
|
||||||
'return item; ' \
|
'return item; ' \
|
||||||
'}'
|
'}'
|
||||||
|
|
||||||
|
@ -189,5 +190,6 @@ def typeahead_change( f_name ):
|
||||||
return 'function(evt) { ' \
|
return 'function(evt) { ' \
|
||||||
'if (evt.currentTarget.value === "") {' \
|
'if (evt.currentTarget.value === "") {' \
|
||||||
'$("#'+hidden_id(f_name)+'").val(""); ' \
|
'$("#'+hidden_id(f_name)+'").val(""); ' \
|
||||||
|
'$("#'+hidden_id(f_name)+'").change();' \
|
||||||
'}' \
|
'}' \
|
||||||
'}'
|
'}'
|
||||||
|
|
Loading…
Reference in a new issue