CC-4721: Library -> Context Menu -> 'Add to smart block' option only takes affect once the open smart block has been saved

This commit is contained in:
denise 2012-12-19 15:01:53 -05:00
parent fa63148792
commit a4008aaef3

View file

@ -915,7 +915,11 @@ var AIRTIME = (function(AIRTIME) {
soundcloud.view.callback = callback;
}
}
// remove 'Add to smart block' option if the current
// block is dynamic
if ($('input:radio[name=sp_type]:checked').val() === "1") {
delete oItems.pl_add;
}
items = oItems;
}