Merge branch 'devel' of dev.sourcefabric.org:airtime into devel
This commit is contained in:
commit
ed54e882a3
|
@ -57,7 +57,11 @@ class LibraryController extends Zend_Controller_Action
|
|||
$obj = new Application_Model_Block($this->obj_sess->id);
|
||||
}
|
||||
if ($isAdminOrPM || $obj->getCreatorId() == $user->getId()) {
|
||||
$menu["pl_add"] = array("name"=> "Add to ".ucfirst($this->obj_sess->type), "icon" => "add-playlist", "icon" => "copy");
|
||||
if ($this->obj_sess->type === "playlist") {
|
||||
$menu["pl_add"] = array("name"=> "Add to Playlist", "icon" => "add-playlist", "icon" => "copy");
|
||||
} else {
|
||||
$menu["pl_add"] = array("name"=> "Add to Smart Playlist", "icon" => "add-playlist", "icon" => "copy");
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($isAdminOrPM) {
|
||||
|
@ -72,6 +76,13 @@ class LibraryController extends Zend_Controller_Action
|
|||
$obj = new Application_Model_Playlist($id);
|
||||
} else {
|
||||
$obj = new Application_Model_Block($id);
|
||||
if ($isAdminOrPM || $obj->getCreatorId() == $user->getId()) {
|
||||
if ($this->obj_sess->type === "playlist") {
|
||||
$menu["pl_add"] = array("name"=> "Add to Playlist", "icon" => "add-playlist", "icon" => "copy");
|
||||
} else {
|
||||
$menu["pl_add"] = array("name"=> "Add to Smart Playlist", "icon" => "add-playlist", "icon" => "copy");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->obj_sess->id !== $id && $screen == "playlist") {
|
||||
|
|
|
@ -219,7 +219,7 @@ class PlaylistController extends Zend_Controller_Action
|
|||
|
||||
$name = 'Untitled Playlist';
|
||||
if ($type == 'block') {
|
||||
$name = 'Untitled Smart Block';
|
||||
$name = 'Untitled Smart Playlist';
|
||||
}
|
||||
|
||||
$obj = new $objInfo['className']();
|
||||
|
|
|
@ -614,11 +614,7 @@ var AIRTIME = (function(AIRTIME) {
|
|||
}
|
||||
else {
|
||||
callback = function() {
|
||||
if (data.ftype === "playlist") {
|
||||
AIRTIME.playlist.fnEdit(data.id, 'playlist');
|
||||
} else {
|
||||
AIRTIME.playlist.fnEdit(data.id, 'block');
|
||||
}
|
||||
AIRTIME.playlist.fnEdit(data.id, data.ftype);
|
||||
};
|
||||
}
|
||||
oItems.edit.callback = callback;
|
||||
|
|
|
@ -759,7 +759,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
ignoreRightClick: true,
|
||||
items: {
|
||||
"sp": {name: "New Playlist", callback: AIRTIME.playlist.fnNew},
|
||||
"sb": {name: "New Smart Block", callback: AIRTIME.playlist.fnNewBlock}
|
||||
"sb": {name: "New Smart Playlist", callback: AIRTIME.playlist.fnNewBlock}
|
||||
}
|
||||
});
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue