dordogne-cd24: handle contact commune cells loading for details display (#43427)
This commit is contained in:
parent
6f1707e070
commit
cd34468cd6
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue