mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added spotify and YouTube logo for import-buttons, and fixed so the spinning thingy moves when exporting playlist
This commit is contained in:
@@ -376,6 +376,8 @@ var List = {
|
||||
|
||||
exportToYoutube: function(){
|
||||
var request_url = "https://www.googleapis.com/youtube/v3/playlists?part=snippet";
|
||||
$(".exported-list-container").removeClass("hide");
|
||||
$("#playlist_loader_export").removeClass("hide");
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: request_url,
|
||||
@@ -415,11 +417,10 @@ var List = {
|
||||
if(number_added == full_playlist.length - 1){
|
||||
Helper.log("All videoes added!");
|
||||
Helper.log("url: https://www.youtube.com/playlist?list=" + playlist_id);
|
||||
$(".exported-list").append("<h5>Exported URL:</h5>");
|
||||
$(".exported-list").append("<h5>Exported list</h5>");
|
||||
$(".exported-list").append("<a target='_blank' class='btn light exported-playlist' href='https://www.youtube.com/playlist?list=" + playlist_id + "'>" + chan + "</a>");
|
||||
$("#playlist_loader_export").addClass("hide");
|
||||
//$(".youtube_export_button").removeClass("hide");
|
||||
$(".exported-list-container").removeClass("hide");
|
||||
}
|
||||
number_added += 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user