/** * Get a list of JavaScript files * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); $list[] = $this->getDir() . '/' . $this->getPageBodyDir() . '/controller.js'; return $list; }
/** * Get a list of JavaScript files * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); $list[] = $this->getDir() . '/' . $this->getPageBodyDir() . '/controller.js'; if (static::SORT_TYPE_MOVE === $this->getSortableType()) { $list = array_merge($list, $this->getWidget(array(), $this->getMovePositionWidgetClassName())->getJSFiles(), $this->getWidget(array(), $this->getOrderByWidgetClassName())->getJSFiles()); } return $list; }