Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. var username = document.cookie.replace(/(?:(?:^|.*;\s*)username\s*\=\s*([^;]*).*$)|^.*$/, "$1");
  2. var password = document.cookie.replace(/(?:(?:^|.*;\s*)password\s*\=\s*([^;]*).*$)|^.*$/, "$1");
  3.  
  4. if (username == "" || password == ""){
  5. window.location.replace("http://www.returnit.com:8080/returnitRest/login.html")
  6. }
  7.  
  8. var clients;
  9. var oldProduct;
  10. var curProductList = {};
  11. var curProductIndex;
  12.  
  13. var userFilter = {
  14. "inputEmail" : "",
  15. "inputFirstName" : "",
  16. "inputLastName" : "",
  17. "inputType" : "client"
  18. };
  19.  
  20. $.ajax( {
  21. url: "http://www.returnit.com:8080/returnitRest/rest/user",
  22. data: $.param(userFilter, true),
  23. contentType: "application/json"
  24. } )
  25. .done( function(response){
  26.  
  27. .fail( function(jqXHR){
  28. alert(jqXHR.statusText);
  29. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement