CC-4757: Duplicate playlist

- done
- we still need a icon for context menu
This commit is contained in:
James 2012-12-28 16:17:58 -05:00
parent 6e77f2637a
commit f26778ee72
2 changed files with 42 additions and 0 deletions

View file

@ -915,6 +915,16 @@ var AIRTIME = (function(AIRTIME) {
soundcloud.view.callback = callback;
}
}
// add callbacks for duplicate menu items.
if (oItems.duplicate !== undefined) {
var url = oItems.duplicate.url;
callback = function() {
$.post(url, {format: "json", id: data.id }, function(json){
oTable.fnStandingRedraw();
});
};
oItems.duplicate.callback = callback;
}
// remove 'Add to smart block' option if the current
// block is dynamic
if ($('input:radio[name=sp_type]:checked').val() === "1") {