main.js 297 B

123456789101112131415
  1. $(document).ready(function(){
  2. });
  3. function directory_send_sms(button){
  4. var user = $(button).closest('tr').attr('data-user');
  5. $(button).addClass('btn-preloader');
  6. $.action({
  7. action : 'directory_send_sms',
  8. user : user
  9. },function(r){
  10. $.message('info','SMS envoyé à '+r.phone);
  11. });
  12. }