From d9ecb965bbc669fa34448aef3fd4c0391e38b313 Mon Sep 17 00:00:00 2001 From: James Moon Date: Wed, 27 Apr 2011 14:41:47 -0700 Subject: [PATCH] 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. --- airtime_mvc/application/controllers/PlaylistController.php | 2 -- airtime_mvc/public/js/airtime/library/spl.js | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/controllers/PlaylistController.php b/airtime_mvc/application/controllers/PlaylistController.php index c7da627f6..e6c37c580 100644 --- a/airtime_mvc/application/controllers/PlaylistController.php +++ b/airtime_mvc/application/controllers/PlaylistController.php @@ -173,7 +173,6 @@ class PlaylistController extends Zend_Controller_Action $this->view->html = $this->view->render('playlist/update.phtml'); $this->view->name = $pl->getName(); $this->view->length = $pl->getLength(); - $this->view->pl_id = $pl->getid(); unset($this->view->pl); return; @@ -219,7 +218,6 @@ class PlaylistController extends Zend_Controller_Action $this->view->html = $this->view->render('playlist/update.phtml'); $this->view->name = $pl->getName(); $this->view->length = $pl->getLength(); - $this->view->pl_id = $pl->getid(); unset($this->view->pl); diff --git a/airtime_mvc/public/js/airtime/library/spl.js b/airtime_mvc/public/js/airtime/library/spl.js index fae59e97c..c24c9d348 100644 --- a/airtime_mvc/public/js/airtime/library/spl.js +++ b/airtime_mvc/public/js/airtime/library/spl.js @@ -389,6 +389,10 @@ function deleteSPL() { url = '/Playlist/delete-active/format/json'; $.post(url, noOpenPL); + + //redraw the library list + dt = $("#library_display").dataTable(); + dt.fnStandingRedraw(); } function openDiffSPL(json) {