Subversion Repositories eFlore/Applications.cel

Rev

Rev 3318 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3318 Rev 3335
Line 476... Line 476...
476
		var obsData   = this.formaterFormObsData();
476
		var obsData   = this.formaterFormObsData();
Line 477... Line 477...
477
 
477
 
478
		// Résumé obs et stockage en data de "#list-obs" pour envoi
478
		// Résumé obs et stockage en data de "#list-obs" pour envoi
479
		this.afficherObs( obsData );
479
		this.afficherObs( obsData );
480
		this.stockerObsData( obsData );
480
		this.stockerObsData( obsData );
481
		this.supprimerMiniatures();
-
 
482
		$( '#taxon' ).val( '' );
-
 
483
		$( '#taxon' ).removeData( 'value' )
-
 
484
			.removeData( 'numNomSel' )
-
 
485
			.removeData( 'nomRet' )
-
 
486
			.removeData( 'numNomRet' )
-
 
487
			.removeData( 'nt' )
-
 
488
			.removeData( 'famille' );
-
 
489
		$( '#taxon-liste' ).find( 'option' ).each( function() {
-
 
490
			if ( $( this ).hasClass( 'choisir' ) ) {
-
 
491
				$( this ).attr( 'selected', true );
-
 
492
			} else {
-
 
493
				$( this ).attr( 'selected', false );
-
 
494
			}
-
 
495
		});
-
 
496
		$( '#taxon-input-groupe' ).addClass( 'hidden' );
-
 
497
		$( '#taxon-autre' ).val( '' );
481
		this.reinitialiserFormPlantes();
498
		$( '#barre-progression-upload' ).attr( 'aria-valuemax', this.obsNbre );
482
		$( '#barre-progression-upload' ).attr( 'aria-valuemax', this.obsNbre );
499
		$( '#barre-progression-upload .sr-only' ).text( '0/' + this.obsNbre + ' ' + this.utils.msgTraduction( 'observations-transmises' ) );
483
		$( '#barre-progression-upload .sr-only' ).text( '0/' + this.obsNbre + ' ' + this.utils.msgTraduction( 'observations-transmises' ) );
500
	} else {
484
	} else {
501
		this.afficherPanneau( '#dialogue-form-invalide' );
485
		this.afficherPanneau( '#dialogue-form-invalide' );
502
	}
486
	}
Line -... Line 487...
-
 
487
};
-
 
488
 
-
 
489
PlantesStreets.prototype.reinitialiserFormPlantes = function() {
-
 
490
	this.supprimerMiniatures();
-
 
491
	$( '#taxon,#taxon-autre,#commentaire' ).val( '' );
-
 
492
	$( '#taxon' ).removeData( 'value' )
-
 
493
		.removeData( 'numNomSel' )
-
 
494
		.removeData( 'nomRet' )
-
 
495
		.removeData( 'numNomRet' )
-
 
496
		.removeData( 'nt' )
-
 
497
		.removeData( 'famille' );
-
 
498
	$( '#taxon-liste,#certitude' ).find( 'option' ).each( function() {
-
 
499
		if ( $( this ).hasClass( 'choisir' ) ) {
-
 
500
			$( this ).attr( 'selected', true );
-
 
501
		} else {
-
 
502
			$( this ).attr( 'selected', false );
-
 
503
		}
-
 
504
	});
-
 
505
	$( '#taxon-input-groupe' ).addClass( 'hidden' );
503
};
506
};
504
 
507
 
505
/**
508
/**
506
 * Formatage des données du formulaire pour stockage et envoi
509
 * Formatage des données du formulaire pour stockage et envoi
507
 */
510
 */