29,7 → 29,7 |
'erreur-formulaire' : 'Erreur: impossible de charger le formulaire', |
'lieu-obs' : 'observé à', |
'lieu-dit' : 'Lieu-dit', |
'taxon-ou-image' : 'Veuillez transmettre au moins, soit une image, soit une espèce', |
'taxon-ou-image' : 'Veuillez transmettre au moins, soit une image, soit une espèce', |
'station' : 'Station', |
'date-rue' : 'Un releve existe dejà à cette date pour cette rue.', |
'rechargement-page' : 'Êtes vous sûr de vouloir quiter la page?\nLes observations saisies mais non transmises seront perdues.', |
213,12 → 213,12 |
// To achieve the same effect, use some custom JavaScript |
$( '#fenetre-modal' ).off( 'shown.bs.modal' ).on( 'shown.bs.modal' , function () { |
$( '#myInput' ).trigger( 'focus' ); |
if( lthis.valOk( $( '#modale-aide-img' ) ) ) { |
if( valOk( $( '#modale-aide-img' ) ) ) { |
lthis.redimentionnerImgAide(); |
$( window ).on( 'resize', lthis.redimentionnerImgAide.bind( lthis ) ); |
} |
}); |
if ( this.valOk( buttons ) ) { |
if ( valOk( buttons ) ) { |
buttonsHtml = ''; |
$.each( buttons, function( i, button ) { |
dismiss = button.dismiss ? 'data-dismiss="modal"' : ''; |
236,10 → 236,10 |
|
Utils.prototype.redimentionnerImgAide = function() { |
const espHorizDisp = $( '.modal-dialog' ).innerWidth() <= 1200 ? $( '.modal-dialog' ).innerWidth() - 30 : 1200, |
cssImg = { |
'width': espHorizDisp, |
'height' : 'auto' |
}; |
cssImg = { |
'width': espHorizDisp, |
'height' : 'auto' |
}; |
|
$( '#modale-aide-img' ).css(cssImg).show(50); |
}; |
290,7 → 290,7 |
otherId = PREFIX + dataName; |
dataLabel = $( '.select' ).data( 'label' ); |
// Insertion du champ "Autre" après les boutons |
if ( !lthis.valOk( $( '#'+otherId ) ) ) { |
if ( !valOk( $( '#'+otherId ) ) ) { |
optionAdd( otherId, $( this ).parent( '.add-field-select' ), 'select', dataName, dataLabel ); |
} |
} else if ( $( this ).is( ':checked' ) ) { |
299,7 → 299,7 |
dataLabel = $( this ).data( 'label' ); |
element = $( this ).data( 'element' ); |
// Insertion du champ "Autre" après les boutons |
if ( !lthis.valOk( $( '#'+ otherId ) ) ) { |
if ( !valOk( $( '#'+ otherId ) ) ) { |
optionAdd( otherId, $( this ).parent( 'label' ), element, dataName, dataLabel ); |
} |
} |
311,7 → 311,7 |
dataLabel = $( this ).data( 'label' ); |
if( 'other' === $( this ).val() ) { |
// Insertion du champ "Autre" après les boutons |
if ( !lthis.valOk( $( '#'+otherId ) ) ) { |
if ( !valOk( $( '#'+otherId ) ) ) { |
optionAdd( otherId, $( this ).parent( '.add-field-select' ), 'select', dataName, dataLabel ); |
} |
} else { |
327,7 → 327,7 |
dataLabel = $( this ).data( 'label' ); |
if( 'other' === $( this ).val() ) { |
// Insertion du champ "Autre" après les boutons |
if ( !lthis.valOk( $( '#'+otherId ) ) ) { |
if ( !valOk( $( '#'+otherId ) ) ) { |
optionAdd( otherId, $( this ).parent( 'label' ), 'radio', dataName, dataLabel ); |
} |
} else { |
344,7 → 344,7 |
element = $( this ).data( 'element' ); |
if( $( this ).is( ':checked' ) ) { |
// Insertion du champ "Autre" après les boutons |
if ( !lthis.valOk( $( '#'+otherId ) ) ) { |
if ( !valOk( $( '#'+otherId ) ) ) { |
optionAdd( otherId, $( this ).parent( 'label' ), element, dataName, dataLabel ); |
} |
} else { |