CC-5762 : Playlist options validation

only add to static playlists
This commit is contained in:
Naomi 2014-04-03 15:15:57 -04:00
parent eaa804597e
commit 9d11d2a6a7
1 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,11 @@ var AIRTIME = (function(AIRTIME) {
//data is the aData of the tr element.
mod.dblClickAdd = function(data) {
addToPlaylist([data.Id]);
var $playlistContentEl = $("#spl_sortable");
if ($playlistContentEl.length > 0) {
addToPlaylist([data.Id]);
}
};
mod.addButtonClick = function() {