Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $("a#foo").click(function(e) {
- return $.ajax("api/v1/foo");
- });
- return {
- username: "foo",
- password: "bar",
- error: function(xhr, status, error) {
- return alert('foo error');
- },
- success: function(data, status, xhr) {
- return alert('foo done');
- }
- };
- });
Add Comment
Please, Sign In to add comment