CC-6129: Static smart block errors don't appear

This commit is contained in:
Albert Santoni 2015-09-02 15:07:17 -04:00
parent a17001a90a
commit 6046f8843b
2 changed files with 2 additions and 5 deletions

View File

@ -595,10 +595,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);

View File

@ -1001,7 +1001,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
*/