mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-07-07 03:42:56 +00:00
Deprecate movies system
This commit is contained in:
@ -1,30 +0,0 @@
|
||||
/**
|
||||
* Movies category
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
/**
|
||||
* Apply the list of movies of the user
|
||||
*/
|
||||
function ApplyMovies(){
|
||||
|
||||
let target = document.querySelector("#full-movie-list-table tbody");
|
||||
|
||||
//Process the list of movies
|
||||
data.movies.forEach(movie => {
|
||||
|
||||
createElem2({
|
||||
appendTo: target,
|
||||
type: "tr",
|
||||
innerHTML:
|
||||
"<td>" + movie.id + "</td>" +
|
||||
"<td>" + movie.name + "</td>" +
|
||||
"<td>" + movie.file_type + "</td>" +
|
||||
"<td>" + movie.size + "</td>" +
|
||||
"<td> <a href='"+getFilePathFromURL(movie.url)+"'>Open</a></td>"
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
}
|
@ -136,21 +136,6 @@ function ApplyPosts(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
//Post with movie
|
||||
if(post.kind == "movie"){
|
||||
|
||||
//Display the movie only (movies have a dedicated tab)
|
||||
createElem2({
|
||||
appendTo: cardContent,
|
||||
type: "a",
|
||||
href: getFilePathFromURL(post.video_info.url),
|
||||
innerHTML: "Open movie"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Post with weblink
|
||||
if(post.kind == "weblink"){
|
||||
|
||||
|
@ -79,7 +79,6 @@ xhr.onload = function(){
|
||||
ApplyCommentsList();
|
||||
ApplyUserLikes();
|
||||
ApplySurveyResponses();
|
||||
ApplyMovies();
|
||||
ApplyAllConversationMessages();
|
||||
ApplyConversations();
|
||||
}
|
||||
|
Reference in New Issue
Block a user