public function indexAction() { parent::indexAction(); $this->_resource->addInlineJs(' var canEdit = ' . $this->_user->canEdit($this->_module) . '; var canDelete = ' . $this->_user->canDelete($this->_module) . '; '); }
/** * (non-PHPdoc) * @see Backend_Controller::indexAction() */ public function indexAction() { parent::indexAction(); $this->_resource->addInlineJs(' var canPublish = ' . intval($this->_user->canPublish($this->_module)) . '; '); $this->_resource->addJs('/js/app/system/ContentWindow.js', 1); $this->_resource->addJs('/js/app/system/RevisionPanel.js', 2); }