SAAS-948 - fix smartblock save and tab close functionality, implement 'super' checkbox

This commit is contained in:
Duncan Sommerville 2015-08-10 18:46:12 -04:00
parent 849b8038ce
commit c9f9bed2d6
6 changed files with 61 additions and 24 deletions

View file

@ -539,14 +539,16 @@ class NewPlaylistController extends Zend_Controller_Action
$result['html'] = $this->createFullResponse($bl, true, true);
$result['result'] = 0;
} else {
$this->view->obj = $bl;
$this->view->id = $bl->getId();
$this->view->form = $form;
$this->view->unsavedName = $params['name'];
$this->view->unsavedDesc = $params['description'];
$viewPath = 'playlist/_smart-block.phtml';
$this->view->obj = $bl;
$this->view->id = $bl->getId();
$result['html'] = $this->view->render($viewPath);
$result['result'] = 1;
$result['type'] = "sb";
$result['id'] = $bl->getId();
}
} else if ($params['type'] == 'playlist') {
$this->setPlaylistNameDescAction();