示例#1
0
    public function indexAction()
    {
        parent::indexAction();
        $this->_resource->addInlineJs('
	        	var canEdit = ' . $this->_user->canEdit($this->_module) . ';
	        	var canDelete = ' . $this->_user->canDelete($this->_module) . ';
	    ');
    }
示例#2
0
文件: Vc.php 项目: vgrish/dvelum
 /**
  * (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);
 }