Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getFiles(e, uname){
- $.get({
- url: `http://myurl/files/${uname}?dir=${e.id}`,
- success(response){
- for(let i = 0; i < response.length; i++){
- $(`#${e.id}`).append('<div class="collapsible-body"><a href="/files/'+uname+'/download/'+response[i]+'">'+response[i]+'</a></div>');
- // $(`#${e.id}`).append("HELLO");
- }
- },
- error(err){
- console.log(err);
- }
- })
- }
Add Comment
Please, Sign In to add comment