cc-2211:changes-to-playlist-not-shown

- removing some codes that aren't used.
- it deletes pl from the right list if the 'delete' button on
the left window is clicked.
This commit is contained in:
James Moon 2011-04-27 14:41:47 -07:00
parent 44d599a00b
commit d9ecb965bb
2 changed files with 4 additions and 2 deletions

View file

@ -173,7 +173,6 @@ class PlaylistController extends Zend_Controller_Action
$this->view->html = $this->view->render('playlist/update.phtml'); $this->view->html = $this->view->render('playlist/update.phtml');
$this->view->name = $pl->getName(); $this->view->name = $pl->getName();
$this->view->length = $pl->getLength(); $this->view->length = $pl->getLength();
$this->view->pl_id = $pl->getid();
unset($this->view->pl); unset($this->view->pl);
return; return;
@ -219,7 +218,6 @@ class PlaylistController extends Zend_Controller_Action
$this->view->html = $this->view->render('playlist/update.phtml'); $this->view->html = $this->view->render('playlist/update.phtml');
$this->view->name = $pl->getName(); $this->view->name = $pl->getName();
$this->view->length = $pl->getLength(); $this->view->length = $pl->getLength();
$this->view->pl_id = $pl->getid();
unset($this->view->pl); unset($this->view->pl);

View file

@ -389,6 +389,10 @@ function deleteSPL() {
url = '/Playlist/delete-active/format/json'; url = '/Playlist/delete-active/format/json';
$.post(url, noOpenPL); $.post(url, noOpenPL);
//redraw the library list
dt = $("#library_display").dataTable();
dt.fnStandingRedraw();
} }
function openDiffSPL(json) { function openDiffSPL(json) {