side playlist working, need to add to search page as well.

This commit is contained in:
naomiaro 2010-12-21 17:47:51 -05:00
parent 83d8975110
commit 055f541657
3 changed files with 4 additions and 8 deletions

View File

@ -12,17 +12,13 @@ class SideplaylistController extends Zend_Controller_Action
$this->_redirect('login/index');
}
//$ajaxContext = $this->_helper->getHelper('AjaxContext');
//$ajaxContext->addActionContext('event-feed', 'json')
// ->initContext();
$this->pl_sess = new Zend_Session_Namespace(UI_PLAYLIST_SESSNAME);
}
public function indexAction()
{
$this->_helper->layout->setLayout('sidebar');
$this->_helper->viewRenderer->setResponseSegment('sidebar');
$this->_helper->viewRenderer->setResponseSegment('spl');
$pl_sess = $this->pl_sess;

View File

@ -13,7 +13,7 @@
<div id="content"><?php echo $this->layout()->content ?></div>
<div id="sidebar"><?php echo $this->layout()->sidebar ?></div>
<div id="side_playlist"><?php echo $this->layout()->spl ?></div>
</body>
</html>

View File

@ -143,8 +143,8 @@ $(document).ready(function() {
$("#spl_sortable" ).bind( "sortstop", moveSPLItem);
$("#spl_remove_selected").click(deleteSPLItem);
$("#spl_sortable").droppable();
$("#spl_sortable" ).bind( "drop", addSPLItem);
$("#side_playlist").droppable();
$("#side_playlist" ).bind( "drop", addSPLItem);
$('input[name="all"]').click(function(){
$('form[name="SPL"]').find('input').attr("checked", $(this).attr("checked"));