Guest User

Untitled

a guest
Jan 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. function getFiles(e, uname){
  2. $.get({
  3. url: `http://myurl/files/${uname}?dir=${e.id}`,
  4. success(response){
  5. for(let i = 0; i < response.length; i++){
  6. $(`#${e.id}`).append('<div class="collapsible-body"><a href="/files/'+uname+'/download/'+response[i]+'">'+response[i]+'</a></div>');
  7. // $(`#${e.id}`).append("HELLO");
  8. }
  9. },
  10. error(err){
  11. console.log(err);
  12. }
  13. })
  14. }
Add Comment
Please, Sign In to add comment