dordogne-cd24: handle contact commune cells loading for details display (#43427)

This commit is contained in:
Serghei Mihai 2020-06-18 11:00:32 +02:00
parent 6f1707e070
commit cd34468cd6
1 changed files with 7 additions and 5 deletions

View File

@ -1,8 +1,10 @@
$(function() {
$('div.contact-commune select').on('change', function() {
var $parent = $(this).parent();
$parent.find('> div').hide();
$parent.find('div#commune-' + this.value).show();
$(document).on('combo:cell-loaded', function() {
$('div.contact-commune select').on('change', function() {
var $parent = $(this).parent();
$parent.find('> div').hide();
$parent.find('div#commune-' + this.value).show();
});
$('div.contact-commune select').trigger('change');
});
$('div.contact-commune select').trigger('change');
});