diff --git a/airtime_mvc/application/views/scripts/playlist/update.phtml b/airtime_mvc/application/views/scripts/playlist/update.phtml
index a51fd37db..70176ff9e 100644
--- a/airtime_mvc/application/views/scripts/playlist/update.phtml
+++ b/airtime_mvc/application/views/scripts/playlist/update.phtml
@@ -21,7 +21,7 @@ if ($item['type'] == 2) {
-
">
+
" blocktype="">
diff --git a/airtime_mvc/public/js/airtime/library/spl.js b/airtime_mvc/public/js/airtime/library/spl.js
index 5e300dea6..e79678201 100644
--- a/airtime_mvc/public/js/airtime/library/spl.js
+++ b/airtime_mvc/public/js/airtime/library/spl.js
@@ -393,6 +393,31 @@ var AIRTIME = (function(AIRTIME){
},
})
}
+ } else {
+ if ($(value).attr('blocktype') === 'dynamic') {
+ $(value).attr("class", "big_play_disabled dark_class");
+ $(value).qtip({
+ content: 'Dynamic block is not previewable',
+ show: 'mouseover',
+ hide: {
+ delay: 500,
+ fixed: true
+ },
+ style: {
+ border: {
+ width: 0,
+ radius: 4
+ },
+ classes: "ui-tooltip-dark ui-tooltip-rounded"
+ },
+ position: {
+ my: "left bottom",
+ at: "right center"
+ },
+ })
+ } else {
+ $(value).bind("click", openAudioPreview);
+ }
}
});
}