can add a playlist to scratchpad from search/browse, popups are gone from adding to playlist, removing from playlist.

This commit is contained in:
naomiaro 2010-10-14 20:39:45 -04:00
parent 69f526b572
commit ea07030cd8
7 changed files with 58 additions and 24 deletions

View file

@ -129,7 +129,7 @@ class uiScratchPad
* One or more media IDs.
* @return boolean
*/
public function addItem($ids, $playlist=FALSE)
public function addItem($ids, $type=null)
{
if (!$this->Base->STATIONPREFS[UI_SCRATCHPAD_MAXLENGTH_KEY]) {
if (UI_WARNING) {
@ -149,10 +149,10 @@ class uiScratchPad
$scratchpad = $this->get();
foreach ($ids as $id) {
if($playlist === FALSE)
$item = $this->Base->getMetaInfo($id);
else
if($type === 'playlist')
$item = $this->Base->getPLMetaInfo($id);
else
$item = $this->Base->getMetaInfo($id);
foreach ($scratchpad as $key => $val) {
if ($val['id'] == $item['id']) {