public function add($name, $content, $type = AssetQueue::TYPE_DEFAULT) { if ($name == self::LIB_BOOTSTRAP_NAME && $this->existed(self::LIB_JQUERY_UI_NAME)) { parent::add(self::LIB_JQUERY_UI_BOOTSTRAP_NAME, _kExternalLink(self::LIB_JQUERY_UI_BOOTSTRAP_NAME), self::TYPE_RAW); } parent::add($name, $content, $type); }
protected function registerLibScripts($is_auth = false) { parent::registerLibScripts($is_auth); $this->libJsQueue->add(JsQueue::LIB_JQUERY_NAME, _kExternalLink(JsQueue::LIB_JQUERY_NAME)); $this->libJsQueue->add(JsQueue::LIB_JQUERY_UI_NAME, _kExternalLink(JsQueue::LIB_JQUERY_UI_NAME)); $this->libJsQueue->add(JsQueue::LIB_BOOTSTRAP_NAME, _kExternalLink(JsQueue::LIB_BOOTSTRAP_NAME)); $this->libJsQueue->add('slim-scroll', libraryAsset('slimScroll/jquery.slimscroll.min.js')); $this->libJsQueue->add('fast-click', libraryAsset('fastclick/fastclick.min.js')); }