SAAS-1064: Publish action for library context menu

This commit is contained in:
Albert Santoni 2015-09-22 18:33:27 -04:00
parent 50996a081f
commit ed33714340
5 changed files with 139 additions and 29 deletions

View file

@ -1174,13 +1174,7 @@ var AIRTIME = (function(AIRTIME) {
if (oItems.publish !== undefined) {
if (data.ftype === "audioclip") {
callback = function() {
alert("TODO: Publish track with ID " + data.id);
/*
$.get(oItems.publish.url, {format: "json"}, function(json){
//AIRTIME.playlist.fileMdEdit(json);
alert("derp");
});*/
AIRTIME.publish.publishTrack(data.id);
};
}
oItems.publish.callback = callback;