From 77414c7cb9b1068a9e8beb5fd2a999afebaacb3e Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Wed, 30 Oct 2013 20:05:27 +0100 Subject: [PATCH] bug fixe --- js/materio_user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } };