This commit is contained in:
Bachir Soussi Chiadmi 2013-10-30 20:05:27 +01:00
parent 7aa6dfe191
commit 77414c7cb9

View File

@ -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;
}
};