mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
usersuggested videos on password protected lists
This commit is contained in:
@@ -3,7 +3,6 @@ var w_p = true;
|
||||
var hasadmin = 0;
|
||||
var showToggle = true;
|
||||
var list_html = $("#list-song-html").html();
|
||||
var suggest_html = $("#suggest-song-html").html();
|
||||
var blink_interval_exists = false;
|
||||
var unseen = false;
|
||||
var timer = 0;
|
||||
@@ -52,6 +51,13 @@ socket.on("get_list", function(){
|
||||
socket.emit('list', chan.toLowerCase());
|
||||
});
|
||||
|
||||
socket.on("suggested", function(params){
|
||||
var single = true;
|
||||
if(params.id == undefined)
|
||||
single = false;
|
||||
Suggestions.catchUserSuggests(params, single);
|
||||
});
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
//window.vote = List.vote;
|
||||
@@ -327,4 +333,10 @@ $("#suggestions").on( "click", "#del_suggested", function(e){
|
||||
var id = $(this).attr("data-video-id");
|
||||
|
||||
$("#suggested-" + id).remove();
|
||||
});
|
||||
|
||||
$("#suggestions").on( "click", "#del_user_suggested", function(e){
|
||||
var id = $(this).attr("data-video-id");
|
||||
$("#suggested-" + id).remove();
|
||||
List.vote(id, "del");
|
||||
});
|
||||
Reference in New Issue
Block a user