CC-4393: Please ignore AAC and Flac items for Playlist Preview and disable to preview it as a single track
-disable preview icon
This commit is contained in:
parent
20f5fe6480
commit
1c293839da
3 changed files with 35 additions and 19 deletions
|
@ -717,6 +717,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
callback = function() {
|
||||
var url = '/Playlist/edit';
|
||||
AIRTIME.playlist.fnEdit(data.id, data.ftype, url);
|
||||
AIRTIME.playlist.validatePlaylistElements();
|
||||
};
|
||||
} else if (data.ftype === "stream") {
|
||||
callback = function() {
|
||||
|
@ -731,6 +732,13 @@ var AIRTIME = (function(AIRTIME) {
|
|||
|
||||
//define a play callback.
|
||||
if (oItems.play !== undefined) {
|
||||
|
||||
if (oItems.play.mime !== undefined) {
|
||||
if (!isAudioSupported(oItems.play.mime)) {
|
||||
oItems.play.disabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
callback = function() {
|
||||
if (data.ftype === 'playlist' && data.length !== '0.0'){
|
||||
playlistIndex = $(this).parent().attr('id').substring(3); //remove the pl_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue