Guest User

Untitled

a guest
Aug 15th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. /**
  2. * CompleteHandler called on registration form validation
  3. * @param Number id of the ajax call
  4. * @param Object response from XMLHttpRequest
  5. * @param Object additional parameters
  6. * @return void
  7. */
  8. ajax.userCreateHandler = function (id, response, argv) {
  9. if (response.responseText.indexOf("ajaxNeedsRedirect://") === 0) {
  10. location.href = response.responseText.substring("ajaxNeedsRedirect://".length);
  11. return;
  12. }
  13.  
  14. if (argv.node && Y.one(argv.node)) {
  15. dispatcher = new Y.Dispatcher({
  16. node: argv.node,
  17. content: response.responseText
  18. });
  19. }
  20. };
Add Comment
Please, Sign In to add comment