Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3826 Rev 3827
Line 60... Line 60...
60
	this.nn            = '[nn' + this.obs['nom_sel_nn']+']';
60
	this.nn            = '[nn' + this.obs['nom_sel_nn']+']';
61
	this.urlIP         = this.obs['url_ip'];
61
	this.urlIP         = this.obs['url_ip'];
62
	this.tagsImage     = this.tagsToArray( this.item['tags_photo'] );
62
	this.tagsImage     = this.tagsToArray( this.item['tags_photo'] );
63
	this.tagsObs       = this.tagsToArray( this.obs['tags_obs'] );
63
	this.tagsObs       = this.tagsToArray( this.obs['tags_obs'] );
64
	this.auteur        = this.item['utilisateur']['nom_utilisateur'];
64
	this.auteur        = this.item['utilisateur']['nom_utilisateur'];
65
	this.urlProfil     = '/profil-par-id/'+this.item['utilisateur']['id_utilisateur'];
-
 
66
	this.date          = this.item['date'];
65
	this.date          = this.item['date'];
67
};
66
};
Line 68... Line 67...
68
 
67
 
69
WidgetPhotoPopup.prototype.tagsToArray = function( tags ) {
68
WidgetPhotoPopup.prototype.tagsToArray = function( tags ) {
Line 401... Line 400...
401
				case 'nom' :
400
				case 'nom' :
402
					$( '.contenu', $metaContainer ).html( contenu );
401
					$( '.contenu', $metaContainer ).html( contenu );
403
					$( '.bouton', $metaContainer ).attr( 'href', lthis.urlLienEflore );
402
					$( '.bouton', $metaContainer ).attr( 'href', lthis.urlLienEflore );
404
					break;
403
					break;
405
				case 'auteur' :
404
				case 'auteur' :
406
					$( '.bouton', $metaContainer ).attr( 'href', lthis.urlProfil );
405
					$( '.bouton', $metaContainer ).attr( 'href', lthis.item['urlProfil'] );
407
				default:
406
				default:
408
					$( '.contenu', $metaContainer ).text( contenu );
407
					$( '.contenu', $metaContainer ).text( contenu );
409
					break;
408
					break;
410
			}
409
			}
411
		}
410
		}