Merge branch 'feature/musician_profile_enhancements' into feature/musician_search2
This commit is contained in:
commit
08198e0aae
|
|
@ -114,6 +114,8 @@
|
|||
}
|
||||
|
||||
function loadSamples(samples, type, $sampleList, recordingSources) {
|
||||
$sampleList.empty();
|
||||
|
||||
if (type === 'jamkazam') {
|
||||
|
||||
}
|
||||
|
|
@ -127,6 +129,7 @@
|
|||
'recording_title': val.description
|
||||
});
|
||||
|
||||
// TODO: this code is repeated in HTML file
|
||||
var recordingIdAttr = ' data-recording-id="' + val.service_id + '" ';
|
||||
var recordingUrlAttr = ' data-recording-url="' + val.url + '" ';
|
||||
var recordingTitleAttr = ' data-recording-title="' + val.description + '"';
|
||||
|
|
@ -209,8 +212,6 @@
|
|||
'user_id': context.JK.currentUserId,
|
||||
'service_type': type,
|
||||
'claimed_recording_id': id,
|
||||
'url': url,
|
||||
'description': title
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -565,7 +565,7 @@
|
|||
});
|
||||
|
||||
$.each(soundCloudSamples, function(index, sample) {
|
||||
$soundCloudSamples.append("<a href='" + sample.url + "' rel='external'>" + formatTitle(sample.description) + "</a><br/>");
|
||||
$soundCloudSamples.append("<a href='" + sample.url + "' rel='external'>" + formatTitle(sample.description) + "</a><br/>");
|
||||
});
|
||||
|
||||
$.each(youTubeSamples, function(index, sample) {
|
||||
|
|
|
|||
|
|
@ -136,10 +136,10 @@
|
|||
$('div[data-recording-id=' + recordingId + ']').remove();
|
||||
|
||||
if (type === 'soundcloud') {
|
||||
window.soundCloudRecordingValidator.removeRecordingId(recordingId.toString());
|
||||
window.soundCloudRecordingValidator.removeRecordingId(recordingId);
|
||||
}
|
||||
else if (type === 'youtube') {
|
||||
window.youTubeRecordingValidator.removeRecordingId(recordingId.toString());
|
||||
window.youTubeRecordingValidator.removeRecordingId(recordingId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue