Guest User

Untitled

a guest
Feb 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. var ban_status = null;
  2. ban_status = true;
  3. $.ajax({
  4. type: 'POST',
  5. url: app.baseUrl + "/admin/users/api-ban-user",
  6. data: { "userId": user_id, "banStatus": ban_status },
  7. datatype: "json",
  8. success: function (response) {
  9. if (response.status === true) {
  10. addAlert(response.msg, 'success');
  11. userList();
  12. } else {
  13. addAlert(response.msg, 'error');
  14. }
  15. }
  16. });
  17.  
  18. $banStatus = $post['banStatus'];
  19.  
  20. gettype($post['banStatus'])
Add Comment
Please, Sign In to add comment