Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3838 Rev 3946
Line 49... Line 49...
49
WidgetPhotoPopup.prototype.mettreAJourInfosImage = function() {
49
WidgetPhotoPopup.prototype.mettreAJourInfosImage = function() {
50
	this.item          = this.infosImages[this.urls[this.indexImage]];
50
	this.item          = this.infosImages[this.urls[this.indexImage]];
51
	this.titreImage    = this.item['titre'];
51
	this.titreImage    = this.item['titre'];
52
	this.urlLienEflore = this.item['lien'];
52
	this.urlLienEflore = this.item['lien'];
53
	this.idImage       = this.item['id_photo'];
53
	this.idImage       = this.item['id_photo'];
-
 
54
 
-
 
55
	// If last caract of the url is a ',' we remove it
-
 
56
	const lastCaractUrlImage = this.item['url_photo'].slice(-1);
-
 
57
	if (lastCaractUrlImage === ','){
-
 
58
		this.item['url_photo'] = this.item['url_photo'].replace(/.$/,'');
-
 
59
	}
-
 
60
 
54
	this.urlThisImage  = this.item['url_photo']+'.jpg';
61
	this.urlThisImage  = this.item['url_photo']+'.jpg';
55
	this.obs           = this.item['obs'];
62
	this.obs           = this.item['obs'];
56
	this.nn            = '[nn' + this.obs['nom_sel_nn']+']';
63
	this.nn            = '[nn' + this.obs['nom_sel_nn']+']';
57
	this.urlIP         = this.obs['url_ip'];
64
	this.urlIP         = this.obs['url_ip'];
58
	this.tagsImage     = this.tagsToArray( this.item['tags_photo'] );
65
	this.tagsImage     = this.tagsToArray( this.item['tags_photo'] );
Line 632... Line 639...
632
	const lthis = this;
639
	const lthis = this;
633
	$( '#regenerer-miniature' ).off( 'click' ).on( 'click', function( event ) {
640
	$( '#regenerer-miniature' ).off( 'click' ).on( 'click', function( event ) {
634
		event.preventDefault();
641
		event.preventDefault();
Line 635... Line 642...
635
 
642
 
636
		let url = lthis.urlServiceRegenererMiniature + lthis.idImage;
-
 
637
 
643
		let url = lthis.urlServiceRegenererMiniature + lthis.idImage;
638
		$.get( url, function( data ) {
644
		$.get( url, function( data ) {
639
				console.log( data );
645
				console.log( data );
640
			}
646
			}
641
		).fail( function() {
647
		).fail( function() {