Guest User

Untitled

a guest
Oct 15th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. $(function() {
  2. $("a#foo").click(function(e) {
  3. return $.ajax("api/v1/foo");
  4. });
  5. return {
  6. username: "foo",
  7. password: "bar",
  8. error: function(xhr, status, error) {
  9. return alert('foo error');
  10. },
  11. success: function(data, status, xhr) {
  12. return alert('foo done');
  13. }
  14. };
  15. });
Add Comment
Please, Sign In to add comment