mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Merge pull request #468 from zoff-music/feature/add-song-to-other-list
Feature/add song to other list
This commit is contained in:
@@ -263,6 +263,12 @@ var Channel = {
|
||||
html: "Viewers"
|
||||
});
|
||||
|
||||
Helper.tooltip("#addToOtherList", {
|
||||
delay: 5,
|
||||
position: "top",
|
||||
html: "Add to other playlist"
|
||||
});
|
||||
|
||||
Helper.tooltip("#fullscreen", {
|
||||
delay: 5,
|
||||
position: "top",
|
||||
@@ -508,6 +514,7 @@ var Channel = {
|
||||
if(!Helper.mobilecheck()) {
|
||||
Helper.tooltip('.castButton', "destroy");
|
||||
Helper.tooltip("#viewers", "destroy");
|
||||
Helper.tooltip('#addToOtherList', 'destroy');
|
||||
//$('.castButton-unactive').tooltip("destroy");
|
||||
Helper.tooltip("#offline-mode", "destroy");
|
||||
Helper.tooltip('#admin-lock', "destroy");
|
||||
@@ -559,6 +566,7 @@ var Channel = {
|
||||
Helper.css("#embed-button", "display", "none");
|
||||
if(!Helper.mobilecheck()) {
|
||||
Helper.tooltip(".castButton", "destroy");
|
||||
Helper.tooltip('#addToOtherList', 'destroy');
|
||||
Helper.tooltip("#viewers", "destroy");
|
||||
Helper.tooltip("#offline-mode", "destroy");
|
||||
Helper.tooltip("search-btn", "destroy");
|
||||
|
||||
@@ -829,6 +829,7 @@ function addDynamicListeners() {
|
||||
if(!Helper.mobilecheck()) {
|
||||
Helper.tooltip('.castButton', "destroy");
|
||||
Helper.tooltip("#viewers", "destroy");
|
||||
Helper.tooltip('#addToOtherList', 'destroy');
|
||||
//$('.castButton-unactive').tooltip("destroy");
|
||||
Helper.tooltip("#offline-mode", "destroy");
|
||||
Helper.tooltip('#admin-lock', "destroy");
|
||||
@@ -1000,6 +1001,18 @@ function addDynamicListeners() {
|
||||
Player.playVideo();
|
||||
});
|
||||
|
||||
addListener("click", "#addToOtherList", function(event) {
|
||||
this.preventDefault();
|
||||
Helper.toggleClass("#addToListInput", "hide");
|
||||
});
|
||||
|
||||
addListener("submit", "#addToOtherListForm", function() {
|
||||
this.preventDefault();
|
||||
emit("add", {offsiteAdd: true, id: Player.np.id, start: Player.np.start, end: Player.np.end, title: Player.np.title, list: document.getElementById("other-list-name-add").value.toLowerCase(), duration: Player.np.duration, source: Player.np.source, thumbnail: Player.np.thumbnail});
|
||||
Helper.toggleClass("#addToListInput", "hide");
|
||||
document.getElementById("other-list-name-add").value = "";
|
||||
});
|
||||
|
||||
addListener("click", "#listExport", function(event){
|
||||
this.preventDefault();
|
||||
if(!youtube_authenticated){
|
||||
|
||||
Reference in New Issue
Block a user