function charger_valeurs_point(implantation_id) {
var params = {'implantation_id' : implantation_id};
var chargement_vp = $.getJSON('/dae/liste_valeurs_point', params);
- var selected_min = $('#id_valeur_point_min').val()
- var selected_max = $('#id_valeur_point_max').val()
+ var selected_min = null;
+ var selected_max = null;
chargement_vp.success(function(data) {
var items = [];
options += '<option' + suggestion + ' value="' + this.id + '">' + this.label + '</option>';
});
- $('#id_valeur_point_min').html(options).val(selected_min);
- $('#id_valeur_point_max').html(options).val(selected_max);
+ $('#id_valeur_point_min').html(options).val(selected_min).trigger('change');
+ $('#id_valeur_point_max').html(options).val(selected_max).trigger('change');
});
}