Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3316 → Rev 3317

/trunk/widget/modules/apa/squelettes/js/ReleveApa.js
958,7 → 958,6
'</div>'
);
$( '#zone-liste-obs' ).removeClass( 'hidden' );
this.verifierAffichageMiniaturesResumeObs();
};
 
/**
1037,21 → 1036,6
return nn;
};
 
ReleveApa.prototype.verifierAffichageMiniaturesResumeObs = function() {
const lthis = this;
 
var srcTest = '',
$that = null;
 
$( '.defilement-miniatures img' ).each( function() {
$( this ).error().closest('.defilement-miniatures' ).html(
'<figure class="centre">'+
'<img class="miniature align-middle" alt="Aucune photo" src="' + lthis.pasDePhotoIconeUrl + '" width="80%" />'+
'</figure>'
);
});
};
 
/**
* Stocke des données d'obs à envoyer à la bdd
*/
1279,11 → 1263,6
'</div>';
});
$( '#miniatures' ).append( imgHtml );
// remplacer les photos qui ne chargent pas par 'pasDePhotoIcon'
$( '.miniature-img' ).error().replaceWith(
'<img class="miniature align-middle" alt="Aucune photo" src="' + lthis.pasDePhotoIconeUrl + '" width="80%" />'
);
 
$( '#circonference' ).val( arbreDatas.circonference );
$( '#surface-pied' ).val( arbreDatas['surface-pied'] );
$( '#com-arbres' ).val( arbreDatas['com-arbres'] );