diff --git a/js/materio_user.js b/js/materio_user.js index 112e98c4..d989bce8 100755 --- a/js/materio_user.js +++ b/js/materio_user.js @@ -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($('
').addClass('message-error').html(data.errors[field])); } }else{ + // trace('destination = '+destination); window.location.pathname = destination; } };