CC-3819 : Add View on Soundcloud context menu option on calendar page
This commit is contained in:
parent
f8900d4b05
commit
803c44611a
4 changed files with 36 additions and 13 deletions
|
@ -336,13 +336,22 @@ $(document).ready(function() {
|
|||
oItems.content.callback = callback;
|
||||
}
|
||||
|
||||
//define a soundcloud callback.
|
||||
if (oItems.soundcloud !== undefined) {
|
||||
//define a soundcloud upload callback.
|
||||
if (oItems.soundcloud_upload !== undefined) {
|
||||
|
||||
callback = function() {
|
||||
uploadToSoundCloud(data.id);
|
||||
};
|
||||
oItems.soundcloud.callback = callback;
|
||||
oItems.soundcloud_upload.callback = callback;
|
||||
}
|
||||
|
||||
//define a view on soundcloud callback.
|
||||
if (oItems.soundcloud_view !== undefined) {
|
||||
|
||||
callback = function() {
|
||||
window.open(oItems.soundcloud_view.url);
|
||||
};
|
||||
oItems.soundcloud_view.callback = callback;
|
||||
}
|
||||
|
||||
//define a cancel recorded show callback.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue