CC-4615: Now Playing page: Fail to get soundcloud file id in Schedule
- fixed
This commit is contained in:
parent
f246a09b1a
commit
4242fecd34
1 changed files with 8 additions and 2 deletions
|
@ -975,7 +975,6 @@ function addProgressIcon(id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkLibrarySCUploadStatus(){
|
function checkLibrarySCUploadStatus(){
|
||||||
|
|
||||||
var url = '/Library/get-upload-to-soundcloud-status',
|
var url = '/Library/get-upload-to-soundcloud-status',
|
||||||
span,
|
span,
|
||||||
id;
|
id;
|
||||||
|
@ -1028,15 +1027,22 @@ function addQtipToSCIcons(){
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if($(this).hasClass("soundcloud")){
|
else if($(this).hasClass("soundcloud")){
|
||||||
|
var sc_id = $(this).parent().parent().data("aData").soundcloud_id;
|
||||||
$(this).qtip({
|
$(this).qtip({
|
||||||
content: {
|
content: {
|
||||||
|
//text: "The soundcloud id for this file is: "+sc_id
|
||||||
text: "Retrieving data from the server...",
|
text: "Retrieving data from the server...",
|
||||||
ajax: {
|
ajax: {
|
||||||
url: "/Library/get-upload-to-soundcloud-status",
|
url: "/Library/get-upload-to-soundcloud-status",
|
||||||
type: "post",
|
type: "post",
|
||||||
data: ({format: "json", id : id, type: "file"}),
|
data: ({format: "json", id : id, type: "file"}),
|
||||||
success: function(json, status){
|
success: function(json, status){
|
||||||
this.set('content.text', "The soundcloud id for this file is: "+json.sc_id);
|
id = sc_id;
|
||||||
|
if (id == undefined) {
|
||||||
|
id = json.sc_id;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.set('content.text', "The soundcloud id for this file is: "+id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue