Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.when($(".popular-videos").html(datasHTML)).done(
  2.         function(resultadoAcao1)
  3.         {
  4.             resp.forEach(function(item, i)
  5.             {
  6.             // Para cada genero, faz uma nova busca para retornar os filmes
  7.                 $.ajax({
  8.                     type: "POST",
  9.                     url: "/app/action/listar.php",
  10.                     data:
  11.                     {
  12.                         "acao": "listarFilmesSlider",
  13.                         "genero": item.id
  14.                     },
  15.                     dataType: "json",
  16.                     //beforeSend: antesEnviar("#loading", true),
  17.                     error: function(){},
  18.                     success: function(filmeResp){retornoListarFilmesSlider(filmeResp, item.id)}
  19.                 });    
  20.             });
  21.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement