diff --git a/airtime_mvc/application/controllers/PlaylistController.php b/airtime_mvc/application/controllers/PlaylistController.php index b3c8ef317..7bb425a7e 100644 --- a/airtime_mvc/application/controllers/PlaylistController.php +++ b/airtime_mvc/application/controllers/PlaylistController.php @@ -606,10 +606,7 @@ class PlaylistController extends Zend_Controller_Action $this->view->obj = $bl; $this->view->id = $bl->getId(); $this->view->form = $form; - $viewPath = 'playlist/smart-block.phtml'; - $result['html'] = $this->view->render($viewPath); - $result['result'] = 1; - $this->_helper->json->sendJson($result); + $this->createFullResponse($bl, false, true); } } catch (BlockNotFoundException $e) { $this->playlistNotFound('block', true); diff --git a/airtime_mvc/public/js/airtime/library/spl.js b/airtime_mvc/public/js/airtime/library/spl.js index 00342cd8a..22cacd1fb 100644 --- a/airtime_mvc/public/js/airtime/library/spl.js +++ b/airtime_mvc/public/js/airtime/library/spl.js @@ -1007,7 +1007,7 @@ var AIRTIME = (function(AIRTIME){ }); }); - $pl.on("click", "#save_button", function(event) { + $pl.unbind().on("click", "#save_button", function(event) { /* Smart blocks: get name, description, and criteria * Playlists: get name, description */