Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3426 Rev 3427
Line 548... Line 548...
548
/**
548
/**
549
 * Affiche temporairement (formulaire)
549
 * Affiche temporairement (formulaire)
550
 * la miniature d'une image ajoutée à l'obs
550
 * la miniature d'une image ajoutée à l'obs
551
 */
551
 */
552
WidgetsSaisiesCommun.prototype.afficherMiniature = function( reponse ) {
552
WidgetsSaisiesCommun.prototype.afficherMiniature = function( reponse ) {
-
 
553
	console.log(reponse);
553
	if ( this.debug ) {
554
	if ( this.debug ) {
554
		var debogage = $( 'debogage', reponse ).text();
555
		var debogage = $( 'debogage', reponse ).text();
555
	}
556
	}
Line 556... Line 557...
556
 
557
 
Line 567... Line 568...
567
/**
568
/**
568
 * Crée la miniature temporaire (formulaire) + bouton pour l'effacer
569
 * Crée la miniature temporaire (formulaire) + bouton pour l'effacer
569
 */
570
 */
570
WidgetsSaisiesCommun.prototype.creerWidgetMiniature = function( reponse ) {
571
WidgetsSaisiesCommun.prototype.creerWidgetMiniature = function( reponse ) {
571
	var miniatureUrl = $( 'miniature-url', reponse ).text();
572
	var miniatureUrl = $( 'miniature-url', reponse ).text();
572
	var imgNom = $( 'image-nom', reponse ).text();
573
	var imgNom       = $( 'image-nom', reponse ).text();
573
	var html =
574
	var html =
574
		'<div class="miniature mb-3 mr-3">'+
575
		'<div class="miniature mr-3">'+
575
			'<img class="miniature-img" class="miniature img-rounded" alt="' + imgNom + '" src="' + miniatureUrl + '"/>'+
576
			'<img class="miniature-img" class="miniature img-rounded" alt="' + imgNom + '" src="' + miniatureUrl + '" style="min-height:100%;"/>'+
576
			'<a class="effacer-miniature"><i class="fas fa-times"></i></a>'+
577
			'<a class="effacer-miniature">Supprimer</a>'+
577
		'</div>';
578
		'</div>';
Line 578... Line 579...
578
 
579
 
579
	return html;
580
	return html;