Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3427 → Rev 3426

/trunk/widget/modules/saisie2/squelettes/css/saisie.css
423,12 → 423,13
#miniatures .miniature {
position: relative;
display: inline-block;
margin-bottom: 3rem;
 
}
 
#miniatures .miniature .miniature-img {
width: 10vw;
vertical-align: top;
width: 5rem;
height: 100%;
}
 
#miniatures .miniature .effacer-miniature {
436,25 → 437,26
position: absolute;
left: 0;
right: 0;
bottom: -1.9rem;
font-size: 1rem;
background-color: #ff5d55;
opacity: 1;
color: #ffffff;
top: 0;
bottom: 0;
font-size: 2rem;
background-color: rgba(0, 0, 0, 0.3);
opacity: 0;
color: #ff5d55;
padding: 0;
margin: 0;
height: 100%;
width: 100%;
height: 2rem;
align-items:center;
justify-content: center;
cursor: pointer;
border-bottom-right-radius: 0.2rem;
border-bottom-left-radius: 0.2rem;
}
 
#miniatures .miniature .effacer-miniature:hover {
background-color: #ff847e;
#miniatures .miniature .effacer-miniature:hover,
#miniatures .miniature .effacer-miniature:focus {
opacity: 1;
}
 
.obs {
height: 10rem;
padding: 1rem;
583,12 → 585,6
width: 100%;
position: static;
}
#miniatures .miniature .miniature-img {
width: 22.9vw;
}
#miniatures .miniature .effacer-miniature {
font-size: 0.8rem;
}
 
#transmettre-obs.droite {
float: none;
/trunk/widget/modules/saisie2/squelettes/js/ReleveASL.js
105,11 → 105,11
event.preventDefault();
$( this ).addClass( 'disabled' );
$( '.arbre-info' ).not( $( this ) ).removeClass( 'disabled' );
lthis.scrollFormTop( '#zone-arbres' );
 
var numArbre = $( this ).data( 'arbre-info' );
 
lthis.chargerInfosArbre( numArbre );
lthis.scrollFormTop( '#zone-arbres' );
});
// après avoir visualisé les champs d'un arbre, retour à la saisie
$( '#retour' ).on( 'click', function( event ) {
117,6 → 117,7
 
var numArbre = lthis.numArbre + 1;
 
lthis.scrollFormTop( '#zone-arbres' );
// activation des champs et retour à la saisie
lthis.modeArbresBasculerActivation( false, numArbre );
$( '#taxon' )
129,7 → 130,6
'nt',
'famille'
]);
lthis.scrollFormTop( '#zone-arbres' );
});
// chargement plantes ou lichens
var btnChargementForm = this.determinerBtnsChargementForm( '#' );
155,6 → 155,7
}
});
 
this.scrollFormTop( '#zone-observation', '#releve-date' )
if (
this.valOk( $( '#latitude-releve' ).val() ) &&
this.valOk( $( '#longitude-releve' ).val() ) &&
164,7 → 165,6
$( '#geoloc' ).addClass( 'hidden' );
$( '#geoloc-datas' ).removeClass( 'hidden' );
}
this.scrollFormTop( '#zone-observation', '#releve-date' )
};
 
/**
230,6 → 230,7
.off();
$( '#form-observation' ).find( 'input, textarea' ).prop( 'disabled', true );
$( '#zone-arbres,#geoloc-datas,#bouton-nouveau-releve' ).removeClass( 'hidden' );
this.scrollFormTop( '#zone-arbres' );
this.confirmerSortie();
if ( !this.valOk( $( '#releve-data' ).val() ) ) {
var releveDatasTmp = {
287,7 → 288,6
};
 
this.transfererCarto( donnesResetCarto );
this.scrollFormTop( '#zone-arbres' );
}
};
 
/trunk/widget/modules/saisie2/squelettes/js/WidgetsSaisiesCommun.js
550,7 → 550,6
* la miniature d'une image ajoutée à l'obs
*/
WidgetsSaisiesCommun.prototype.afficherMiniature = function( reponse ) {
console.log(reponse);
if ( this.debug ) {
var debogage = $( 'debogage', reponse ).text();
}
570,11 → 569,11
*/
WidgetsSaisiesCommun.prototype.creerWidgetMiniature = function( reponse ) {
var miniatureUrl = $( 'miniature-url', reponse ).text();
var imgNom = $( 'image-nom', reponse ).text();
var imgNom = $( 'image-nom', reponse ).text();
var html =
'<div class="miniature mr-3">'+
'<img class="miniature-img" class="miniature img-rounded" alt="' + imgNom + '" src="' + miniatureUrl + '" style="min-height:100%;"/>'+
'<a class="effacer-miniature">Supprimer</a>'+
'<div class="miniature mb-3 mr-3">'+
'<img class="miniature-img" class="miniature img-rounded" alt="' + imgNom + '" src="' + miniatureUrl + '"/>'+
'<a class="effacer-miniature"><i class="fas fa-times"></i></a>'+
'</div>';
 
return html;
/trunk/widget/modules/saisie2/squelettes/js/WidgetsSaisiesASL.js
177,6 → 177,7
if ( this.valOk( $( '#releve-data' ).val() ) ) {
$( '#charger-form' ).html( squelette );
this.confirmerSortie();
this.scrollFormTop( '#zone-' + nomSquelette );
const releveDatas = $.parseJSON( $( '#releve-data' ).val() );
const nbArbres = releveDatas.length -1;
 
187,7 → 188,6
'</option>'
);
}
this.scrollFormTop( '#zone-' + nomSquelette );
}
};