|  | @@ -44,7 +44,7 @@ MaterioUser = function(){
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    function loadRegisterBlock (destination) {
 | 
	
		
			
				|  |  |      trace("loadRegisterBlock :: dest = "+destination);
 | 
	
		
			
				|  |  | -    $.getJSON(Drupal.settings.basePath+Drupal.settings.pathPrefix+'materio_user/registerblock', formLoaded);
 | 
	
		
			
				|  |  | +    $.getJSON(Drupal.settings.basePath+Drupal.settings.pathPrefix+'materio_user/registerblock', function(json){formLoaded(json, destination);});
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    function loadLoginAndRegisterBlock(destination){
 | 
	
	
		
			
				|  | @@ -127,6 +127,7 @@ MaterioUser = function(){
 | 
	
		
			
				|  |  |          $form.prepend($('<div>').addClass('message-error').html(data.errors[field]));
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      }else{
 | 
	
		
			
				|  |  | +      // trace('destination = '+destination);
 | 
	
		
			
				|  |  |        window.location.pathname = destination;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    };
 |