Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 3291 Rev 3292
Line 161... Line 161...
161
		event.preventDefault();
161
		event.preventDefault();
162
		return false;
162
		return false;
163
	});
163
	});
Line 164... Line 164...
164
 
164
 
-
 
165
	// identité
165
	// identité
166
	$( '#bouton-inscription' ).attr( 'href', this.urlSiteTb() + 'inscription' );
166
	$( '#deconnexion a' ).click( function( event ) {
167
	$( '#deconnexion a' ).click( function( event ) {
167
		event.preventDefault();
168
		event.preventDefault();
168
		lthis.deconnecterUtilisateur();
169
		lthis.deconnecterUtilisateur();
169
	});
170
	});
Line 326... Line 327...
326
	$( '#date-releve' ).focus();
327
	$( '#date-releve' ).focus();
327
  }
328
  }
328
  $( '.warning' ).remove();
329
  $( '.warning' ).remove();
329
  $( '#nom-complet' ).html( nomComplet );
330
  $( '#nom-complet' ).html( nomComplet );
330
  $( '#courriel, #courriel_confirmation' ).val( courriel );
331
  $( '#courriel, #courriel_confirmation' ).val( courriel );
331
  $( '#profil-utilisateur a' ).attr( 'href', this.urlProfilUtilisateur( pseudo ) );
332
  $( '#profil-utilisateur a' ).attr( 'href', this.urlSiteTb() + 'membres/' + pseudo.toLowerCase().replace( ' ', '-' ) );
332
  $( '#id_utilisateur' ).val( idUtilisateur );
333
  $( '#id_utilisateur' ).val( idUtilisateur );
333
  $( '#prenom' ).val( prenom );
334
  $( '#prenom' ).val( prenom );
334
  $( '#nom' ).val( nom );
335
  $( '#nom' ).val( nom );
335
};
336
};
Line 362... Line 363...
362
  input = input.replace( '-', '+' );
363
  input = input.replace( '-', '+' );
363
  input = input.replace( '_', '/' );
364
  input = input.replace( '_', '/' );
364
  return atob( input );
365
  return atob( input );
365
};
366
};
Line 366... Line 367...
366
 
367
 
367
WidgetSaisie.prototype.urlProfilUtilisateur = function( pseudo ) {
368
WidgetSaisie.prototype.urlSiteTb = function() {
Line 368... Line 369...
368
  var urlPart = ( 'test' === this.mode ) ? '/test/' : '/';
369
  var urlPart = ( 'test' === this.mode ) ? '/test/' : '/';
369
 
370
 
Line 370... Line 371...
370
  return window.location.origin + urlPart + 'membres/' + pseudo.toLowerCase().replace( ' ', '-' );
371
  return window.location.origin + urlPart;
371
};
372
};
372
 
373