CC-4248: Playlist Builder: 'Something went wrong' error message when dragging playlist into playlist
-included webstreams in the allowance type list in the error message
This commit is contained in:
parent
0755933ccd
commit
15f750eca5
|
@ -155,7 +155,7 @@ class PlaylistController extends Zend_Controller_Action
|
|||
|
||||
private function wrongTypeToPlaylist($obj)
|
||||
{
|
||||
$this->view->error = "You can only add tracks and smart blocks to playlists.";
|
||||
$this->view->error = "You can only add tracks, smart blocks, and webstreams to playlists.";
|
||||
$this->createFullResponse($obj);
|
||||
}
|
||||
|
||||
|
|
|
@ -134,7 +134,8 @@ var AIRTIME = (function(AIRTIME){
|
|||
//process selected files/playlists.
|
||||
for (i = 0, length = aData.length; i < length; i++) {
|
||||
temp = aData[i];
|
||||
if (temp.ftype === "audioclip" || temp.ftype === "block") {
|
||||
if (temp.ftype === "audioclip" || temp.ftype === "block" ||
|
||||
(temp.ftype === "stream" && $("#obj_type").val() === "playlist")) {
|
||||
aMediaIds.push(new Array (temp.id, temp.ftype));
|
||||
}
|
||||
}
|
||||
|
@ -144,7 +145,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
if ($('#obj_type').val() == 'block') {
|
||||
alert('You can only add tracks to smart blocks.');
|
||||
} else if ($('#obj_type').val() == 'playlist') {
|
||||
alert('You can only add tracks and smart blocks to playlists.');
|
||||
alert('You can only add tracks, smart blocks, and webstreams to playlists.');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue