daily pastebin goal
21%
SHARE
TWEET

ajax.js

a guest Dec 9th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function verStaff(idstaff)
  2. {
  3.  
  4.     $.ajax({
  5.  
  6.         // Colocamos la url y el archivo para obtener el detalle del staff
  7.         url: ajaxurl,
  8.         type: "POST",
  9.         data: {
  10.           'idstaff': idstaff,
  11.           'action' : 'load_staff'
  12.         },
  13.         success: function(data){  
  14.  
  15.           $('.body-modal-staff').html(data);
  16.           $('#myModalStaff').modal('show');
  17.  
  18.         },
  19.         error: function(data){
  20.             $( ".modal-body-error" ).html("<p>Sucedio un error inesperado.<p>");
  21.             $('#myModalError').modal('show');
  22.         }
  23.  
  24.     });
  25.  
  26. }
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