From a4008aaef3a8b1575c2943769db4ed32cdccb31e Mon Sep 17 00:00:00 2001 From: denise Date: Wed, 19 Dec 2012 15:01:53 -0500 Subject: [PATCH] CC-4721: Library -> Context Menu -> 'Add to smart block' option only takes affect once the open smart block has been saved --- airtime_mvc/public/js/airtime/library/library.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/library/library.js b/airtime_mvc/public/js/airtime/library/library.js index 36023003f..2b5fd65c6 100644 --- a/airtime_mvc/public/js/airtime/library/library.js +++ b/airtime_mvc/public/js/airtime/library/library.js @@ -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; }