|
@@ -14,9 +14,9 @@ MaterioUser = function(){
|
|
|
};
|
|
|
|
|
|
function initAdhesion(){
|
|
|
- trace('initAdhesion');
|
|
|
+ // trace('initAdhesion');
|
|
|
$('.get-link a').bind('click', function(event) {
|
|
|
- trace('get-link click');
|
|
|
+ // trace('get-link click');
|
|
|
|
|
|
// do not show the registration form if already logged-in
|
|
|
if($('body').is('.logged-in'))
|
|
@@ -31,7 +31,7 @@ MaterioUser = function(){
|
|
|
|
|
|
destination = "/" + destination[1].replace('%23', '#');
|
|
|
destination = destination.replace('//', '/');
|
|
|
- trace('destination', destination);
|
|
|
+ // trace('destination', destination);
|
|
|
|
|
|
if($this.parents('.gratos').size()){
|
|
|
loadRegisterBlock(destination);
|
|
@@ -43,12 +43,12 @@ MaterioUser = function(){
|
|
|
};
|
|
|
|
|
|
function loadRegisterBlock (destination) {
|
|
|
- trace("loadRegisterBlock :: dest = "+destination);
|
|
|
+ // trace("loadRegisterBlock :: dest = "+destination);
|
|
|
$.getJSON(Drupal.settings.basePath+Drupal.settings.pathPrefix+'materio_user/registerblock', function(json){formLoaded(json, destination);});
|
|
|
}
|
|
|
|
|
|
function loadLoginAndRegisterBlock(destination){
|
|
|
- trace('loadRegistrationBlock :: dest = '+destination);
|
|
|
+ // trace('loadRegistrationBlock :: dest = '+destination);
|
|
|
$.getJSON(Drupal.settings.basePath+Drupal.settings.pathPrefix+'materio_user/loginandregisterblock', function(json){formLoaded(json, destination);});
|
|
|
};
|
|
|
|