157,6 → 157,8 |
WidgetSaisie.prototype.initEvts = function() { |
var lthis = this; |
|
|
|
// identité |
$( '#bouton-anonyme' ).on( 'click', function() { |
$( this ).css({ |
429,15 → 431,6 |
$.getJSON( url, requete, function( data ) { |
var suggestions = lthis.traiterRetourNomsSci( data ); |
add( suggestions ); |
}) |
.fail( function() { |
$( '#certitude' ).find( 'option' ).each( function() { |
if ( $( this ).hasClass( 'aDeterminer' ) ) { |
$( this ).attr( 'selected', true ); |
} else { |
$( this ).attr( 'selected', false ); |
} |
}); |
}); |
} |
}, |
883,7 → 876,7 |
this.nomSciReferentiel = $( '#referentiel' ).val(); |
//réinitialise taxon.val |
$( '#taxon' ).val( '' ); |
$( '#taxon' ).data( 'numNomSel', '' ); |
$( '#taxon' ).data( 'numNomSel', 0 ); |
// this.initialiserAutocompleteCommune(); |
// this.initialiserGoogleMap( false ); |
}; |
1108,7 → 1101,7 |
numNomRet = $( '#taxon' ).data( 'numNomRet' ), |
numTaxon = $( '#taxon' ).data( 'nt' ), |
famille = $( '#taxon' ).data( 'famille' ), |
referentiel = ( !valeurOk( numNomSel ) ) ? 'autre' : this.nomSciReferentiel; |
referentiel = ( !valeurOk( numNomSel ) ) ? '' : this.nomSciReferentiel; |
|
$( '#liste-obs' ).data( 'obsId' + this.obsNbre, { |
'num_nom_sel' : numNomSel, |