CC-5762 : Playlist options validation
only enable add button for playlists with content.
This commit is contained in:
parent
8b390bd1f7
commit
eaa804597e
|
@ -17,9 +17,9 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
mod.checkAddButton = function($pane) {
|
mod.checkAddButton = function($pane) {
|
||||||
var $selected = $pane.find("."+mod.LIB_SELECTED_CLASS),
|
var $selected = $pane.find("."+mod.LIB_SELECTED_CLASS),
|
||||||
$button = $pane.find("." + mod.LIB_ADD_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);
|
AIRTIME.button.enableButton($button);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue