示例#1
0
 /**
  * Register assets.
  */
 protected function registerAssets()
 {
     $view = $this->getView();
     $this->clientOptions['pjaxContainerId'] = '#' . $this->pjaxContainerId;
     $options = Json::encode($this->clientOptions);
     CommentAsset::register($view);
     $view->registerJs('jQuery.comment(' . $options . ');');
 }
示例#2
0
 /**
  * Register assets.
  */
 protected function registerAssets()
 {
     $this->clientOptions['pjaxContainerId'] = '#' . $this->pjaxContainerId;
     $this->clientOptions['formSelector'] = '#' . $this->formId;
     $options = Json::encode($this->clientOptions);
     $view = $this->getView();
     CommentAsset::register($view);
     $view->registerJs("jQuery('#{$this->formId}').comment({$options});");
 }