Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3904 Rev 3921
Line 949... Line 949...
949
			'obs_etendue'        : obsEtendue
949
			'obs_etendue'        : obsEtendue
950
		};
950
		};
951
		if ( !this.isASL ) {
951
		if ( !this.isASL ) {
952
			obsData.sujet['lieudit'] = $( '#lieudit' ).val() || '';
952
			obsData.sujet['lieudit'] = $( '#lieudit' ).val() || '';
953
			obsData.sujet['station'] = $( '#station' ).val() || '';
953
			obsData.sujet['station'] = $( '#station' ).val() || '';
-
 
954
			if( valOk( $( '.checkboxes input[type=checkbox].milieu' ) ) ) {
-
 
955
				const milieux = [];
-
 
956
 
-
 
957
				$( '.checkboxes input[type=checkbox].milieu:checked' ).each( ( index, checkbox ) => milieux.push( checkbox.value ) );
-
 
958
				obsData.sujet['milieu'] = milieux.join( ', ' );
-
 
959
			} else {
954
			obsData.sujet['milieu']  = $( '#milieu' ).val() || '';
960
				obsData.sujet['milieu'] = $( '#milieu' ).val() || '';
-
 
961
			}
955
		}
962
		}
956
	}
963
	}
957
	return obsData;
964
	return obsData;
958
};
965
};