Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 3945 → Rev 3946

/trunk/widget/modules/photo/squelettes/js/WidgetPhotoPopup.js
51,6 → 51,13
this.titreImage = this.item['titre'];
this.urlLienEflore = this.item['lien'];
this.idImage = this.item['id_photo'];
 
// If last caract of the url is a ',' we remove it
const lastCaractUrlImage = this.item['url_photo'].slice(-1);
if (lastCaractUrlImage === ','){
this.item['url_photo'] = this.item['url_photo'].replace(/.$/,'');
}
 
this.urlThisImage = this.item['url_photo']+'.jpg';
this.obs = this.item['obs'];
this.nn = '[nn' + this.obs['nom_sel_nn']+']';
634,7 → 641,6
event.preventDefault();
 
let url = lthis.urlServiceRegenererMiniature + lthis.idImage;
 
$.get( url, function( data ) {
console.log( data );
}