CC-5762 : Playlist options validation

only enable add button for playlists with content.
This commit is contained in:
Naomi 2014-04-03 15:12:55 -04:00
parent 8b390bd1f7
commit eaa804597e
1 changed files with 2 additions and 2 deletions

View File

@ -17,9 +17,9 @@ var AIRTIME = (function(AIRTIME) {
mod.checkAddButton = function($pane) {
var $selected = $pane.find("."+mod.LIB_SELECTED_CLASS),
$button = $pane.find("." + mod.LIB_ADD_CLASS),
$playlistIdEl = $("#playlist_id");
$playlistContentEl = $("#spl_sortable");
if ($selected.length > 0 && $playlistIdEl.length > 0) {
if ($selected.length > 0 && $playlistContentEl.length > 0) {
AIRTIME.button.enableButton($button);
}
else {