mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Can now add songs in private mode even if its admin-locked
This commit is contained in:
4
public/dist/embed.min.js
vendored
4
public/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
4
public/dist/main.min.js
vendored
4
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -268,6 +268,7 @@ var List = {
|
||||
},
|
||||
|
||||
added_song: function(added){
|
||||
console.log(added);
|
||||
var now_playing;
|
||||
|
||||
if(full_playlist.length !== 0){
|
||||
|
||||
@@ -387,8 +387,11 @@ var Search = {
|
||||
},
|
||||
|
||||
submit: function(id,title,duration, playlist, num, full_num){
|
||||
socket.emit("add", {id: id, title: decodeURIComponent(title), adminpass: adminpass, list: chan.toLowerCase(), duration: duration, playlist: playlist, num: num, total: full_num});
|
||||
//[id, decodeURIComponent(title), adminpass, duration, playlist]);
|
||||
if(offline && document.getElementsByName("addsongs")[0].checked){
|
||||
List.channel_function({type: "added", value: {added: (new Date).getTime(), guids: [1], id: id, title: title, duration: duration, playlist: false, now_playing: false, votes: 1}});
|
||||
}
|
||||
socket.emit("add", {id: id, title: decodeURIComponent(title), adminpass: adminpass, list: chan.toLowerCase(), duration: duration, playlist: playlist, num: num, total: full_num});
|
||||
//[id, decodeURIComponent(title), adminpass, duration, playlist]);
|
||||
},
|
||||
|
||||
durationToSeconds: function(duration) {
|
||||
|
||||
Reference in New Issue
Block a user