538 |
function(){ |
function(){ |
539 |
|
|
540 |
var reference_cadastrale = ''; |
var reference_cadastrale = ''; |
541 |
|
var reference_cadastrale_temp = ''; |
542 |
|
|
543 |
$('.reference_cadastrale_custom_field').each( |
$('.reference_cadastrale_custom_field').each( |
544 |
function(){ |
function(){ |
545 |
|
|
546 |
reference_cadastrale += $(this).val(); |
if ( $(this).val() == ';' ){ |
547 |
|
|
548 |
|
reference_cadastrale += reference_cadastrale_temp + ( ( reference_cadastrale_temp != '' && reference_cadastrale_temp.length > 0 ) ? ';' : '' ); |
549 |
|
reference_cadastrale_temp = ''; |
550 |
|
} |
551 |
|
else |
552 |
|
reference_cadastrale_temp += $(this).val(); |
553 |
|
|
554 |
} |
} |
555 |
); |
); |
556 |
|
|
628 |
'<div class="form-content">' + |
'<div class="form-content">' + |
629 |
' + ajouter d\'autres lignes' + |
' + ajouter d\'autres lignes' + |
630 |
'</div>' + |
'</div>' + |
631 |
'</div>' |
'</div>' |
632 |
); |
); |
633 |
|
$('#terrain_superficie').parent().parent().after('<div class="field field-type-text" >' + |
634 |
|
'<div class="form-libelle"></div>' + |
635 |
|
'<div class="form-content">' + |
636 |
|
'<input id="cad-adr-them" class="ui-button ui-widget ui-state-default ui-corner-all" type="button" value="Cadastrale < = > Adresse"/>' + |
637 |
|
'</div>' + |
638 |
|
'</div>' ); |
639 |
} |
} |
640 |
|
|
641 |
/* |
/* |