SHARE
TWEET

Untitled

a guest Jul 17th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getStaff(){
  2.     var staff;
  3.     $.ajax('/getstaff',
  4.             {
  5.                 success: function(data){
  6.                     staff = data;
  7.                 },
  8.  
  9.                 error: function (xhr, ajaxOptions, thrownError) {
  10.                     console.log(xhr.status);
  11.                     console.log(thrownError);
  12.                 }
  13.             }
  14.         )
  15.     return staff;
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top