close playlist in context menu

This commit is contained in:
naomiaro 2010-12-30 14:29:15 -05:00
parent c4053a1b38
commit dc36c972ba
1 changed files with 7 additions and 0 deletions

View File

@ -72,6 +72,13 @@ class LibraryController extends Zend_Controller_Action
'callback' => 'window["openDiffSPL"]'),
'title' => 'Edit');
}
else if(isset($pl_sess->id) && $pl_sess->id === $id) {
$menu[] = array('action' =>
array('type' => 'ajax',
'url' => '/Playlist/close/view/spl'.$params,
'callback' => 'window["noOpenPL"]'),
'title' => 'Close');
}
}