Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- $("#run_test").live('click', function(){
- $.getJSON(baseurl+"auth/run_test_account", function(json){
- $.get(baseurl+"auth/signout/", function(){
- $.ajax({
- type: "POST",
- url: "/auth/signin",
- data: { username: json.username, password: "qwerty" },
- success: function(){
- $.ajax({
- type: "POST",
- url: "/avatar/save",
- success: function(){
- redirect('home');
- }
- });
- }
- });
- });
- });
- return false;
- });
- });
Add Comment
Please, Sign In to add comment