better error message on materio_user.js login/register ajax submit
This commit is contained in:
parent
ffff23584e
commit
85be86a9e4
@ -89,7 +89,7 @@ MaterioUser = function(){
|
|||||||
url: Drupal.settings.basePath+Drupal.settings.pathPrefix+"materio_user/register/submit",
|
url: Drupal.settings.basePath+Drupal.settings.pathPrefix+"materio_user/register/submit",
|
||||||
data: $('#user-register-form', $modal).serialize(),
|
data: $('#user-register-form', $modal).serialize(),
|
||||||
success: function(data) { onUserLoginRegisterSubmit($('#user-register-form'), data, destination);},
|
success: function(data) { onUserLoginRegisterSubmit($('#user-register-form'), data, destination);},
|
||||||
error: function() {trace('error');}
|
error: function(jqXHR, textStatus, errorThrown) { trace('error : '+textStatus+' | '+errorThrown); }
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
@ -102,7 +102,7 @@ MaterioUser = function(){
|
|||||||
url: Drupal.settings.basePath+Drupal.settings.pathPrefix+"materio_user/login/submit",
|
url: Drupal.settings.basePath+Drupal.settings.pathPrefix+"materio_user/login/submit",
|
||||||
data: $('#user-login', $modal).serialize(),
|
data: $('#user-login', $modal).serialize(),
|
||||||
success: function(data){ onUserLoginRegisterSubmit($('#user-login'), data, destination); },
|
success: function(data){ onUserLoginRegisterSubmit($('#user-login'), data, destination); },
|
||||||
error: function() { trace('error'); }
|
error: function(jqXHR, textStatus, errorThrown) { trace('error : '+textStatus+' | '+errorThrown); }
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
4
js/materio_user.min.js
vendored
4
js/materio_user.min.js
vendored
@ -459,7 +459,7 @@ MaterioUser = function(){
|
|||||||
url: Drupal.settings.basePath+Drupal.settings.pathPrefix+"materio_user/register/submit",
|
url: Drupal.settings.basePath+Drupal.settings.pathPrefix+"materio_user/register/submit",
|
||||||
data: $('#user-register-form', $modal).serialize(),
|
data: $('#user-register-form', $modal).serialize(),
|
||||||
success: function(data) { onUserLoginRegisterSubmit($('#user-register-form'), data, destination);},
|
success: function(data) { onUserLoginRegisterSubmit($('#user-register-form'), data, destination);},
|
||||||
error: function() {trace('error');}
|
error: function(jqXHR, textStatus, errorThrown) { trace('error : '+textStatus+' | '+errorThrown); }
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
@ -472,7 +472,7 @@ MaterioUser = function(){
|
|||||||
url: Drupal.settings.basePath+Drupal.settings.pathPrefix+"materio_user/login/submit",
|
url: Drupal.settings.basePath+Drupal.settings.pathPrefix+"materio_user/login/submit",
|
||||||
data: $('#user-login', $modal).serialize(),
|
data: $('#user-login', $modal).serialize(),
|
||||||
success: function(data){ onUserLoginRegisterSubmit($('#user-login'), data, destination); },
|
success: function(data){ onUserLoginRegisterSubmit($('#user-login'), data, destination); },
|
||||||
error: function() { trace('error'); }
|
error: function(jqXHR, textStatus, errorThrown) { trace('error : '+textStatus+' | '+errorThrown); }
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user