fix(soundcloud): remove broken integration

This commit is contained in:
Lucas Bickel 2021-01-06 12:20:23 +00:00 committed by GitHub
parent ecd302068c
commit 4c72403b9b
85 changed files with 133081 additions and 118229 deletions

View file

@ -236,16 +236,15 @@ var AIRTIME = (function(AIRTIME) {
"</div>"
);
if (onDashboard) {
$menu.append(
"<div class='btn-group' title=" + $.i18n._('Publish') + ">" +
"<button class='btn btn-small' id='publish-btn'>" +
"<i class='icon-soundcloud-white'></i>" +
"<span>" + $.i18n._('Publish') + "</span>" +
"</button>" +
"</div>"
);
}
if (onDashboard) {
$menu.append(
"<div class='btn-group' title=" + $.i18n._('Publish') + ">" +
"<button class='btn btn-small' id='publish-btn'>" +
"<span>" + $.i18n._('Publish') + "</span>" +
"</button>" +
"</div>"
);
}
};
mod.createToolbarDropDown = function() {
@ -1325,25 +1324,6 @@ var AIRTIME = (function(AIRTIME) {
};
oItems.download.callback = callback;
}
// add callbacks for Soundcloud menu items.
if (oItems.soundcloud !== undefined) {
var soundcloud = oItems.soundcloud.items;
if (soundcloud.update !== undefined) {
callback = function() {
$.post(soundcloud.update.url, function () {});
};
soundcloud.update.callback = callback;
}
// define a view on soundcloud callback
if (soundcloud.view !== undefined) {
callback = function() {
window.open(soundcloud.view.url);
};
soundcloud.view.callback = callback;
}
}
// add callbacks for duplicate menu items.
if (oItems.duplicate !== undefined) {
var url = oItems.duplicate.url;