Skip to content

Commit

Permalink
Fixed issue #17191: Remove unsused libraries (#1814)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljenik committed Mar 25, 2021
1 parent a88b6b1 commit d9698db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2,374 deletions.
10 changes: 6 additions & 4 deletions application/extensions/bootstrap/components/TbApi.php
Expand Up @@ -128,17 +128,19 @@ public function registerAllCss()
* Registers jQuery and Bootstrap JavaScript.
* @param string $url the URL to the JavaScript file to register.
* @param int $position the position of the JavaScript code.
* 20210322: GJ - Commenting the whole method implementation. JS and CSS are not needed
* and by commenting them, we don't need to mantain them.
*/
public function registerCoreScripts($url = null, $position = CClientScript::POS_END)
{
if ($url === null) {
/*if ($url === null) {
$fileName = YII_DEBUG ? 'bootstrap.js' : 'bootstrap.min.js';
$url = $this->getBootstrapUrl() . '/js/' . $fileName;
}
}*/
/** @var CClientScript $cs */
$cs = Yii::app()->getClientScript();
/*$cs = Yii::app()->getClientScript();
$cs->registerCoreScript('jquery');
$cs->registerScriptFile($url, $position);
$cs->registerScriptFile($url, $position);*/
}

/**
Expand Down

0 comments on commit d9698db

Please sign in to comment.