Guest User

Untitled

a guest
May 26th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. function eliminar_usuarios(){
  2. $("#dialog").dialog("close");
  3. var where='';
  4. var n=$("table tbody tr td input:checked").map(function() {return $(this).attr("id");
  5. });
  6. for (var i = 0; i < n.length; i++) {
  7. where+="idbkend_users="+n[i]+" and ";
  8. }
  9. where=where.substr(0,where.length-4);
  10. //alert(where);
  11. $.ajax({
  12. type:"POST",
  13. url:"services/service_bck_index.php",
  14. data:"where="+where+"&del_bckusers="+1,
  15. beforeSubmit: function () {
  16. $("#usarios_backend").html("");
  17. $("#usarios_backend").append($('#loading').show());
  18. },
  19. success: function(msg){
  20. switch(msg){
  21. case '1': showMsg('Exito','exito','El(los) usuario(s) fue(fueron) eliminado(s) con exito');
  22. tabla_bckusers();
  23. }
  24. }
  25.  
  26. });
  27. }
Add Comment
Please, Sign In to add comment