Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * CompleteHandler called on registration form validation
- * @param Number id of the ajax call
- * @param Object response from XMLHttpRequest
- * @param Object additional parameters
- * @return void
- */
- ajax.userCreateHandler = function (id, response, argv) {
- if (response.responseText.indexOf("ajaxNeedsRedirect://") === 0) {
- location.href = response.responseText.substring("ajaxNeedsRedirect://".length);
- return;
- }
- if (argv.node && Y.one(argv.node)) {
- dispatcher = new Y.Dispatcher({
- node: argv.node,
- content: response.responseText
- });
- }
- };
Add Comment
Please, Sign In to add comment