Проба заменить скрипты из yii1-core

master v3.6.0-r0
parent db31a1f9c5
commit 12a5f2614d
  1. 12
      protected/components/JQueryComponent.php

@ -97,8 +97,16 @@ class JQueryComponent extends CApplicationComponent
if ($this->async) $options['async'] = true;
if ($this->defer) $options['defer'] = true;
Yii::app()->clientScript->registerScriptFile(
$this->_getUrl($jsFile),
$url = $this->_getUrl($jsFile);
$cs = Yii::app()->clientScript;
$cs->scriptMap = array(
'jquery.js' => $url,
'jquery.min.js' => $url,
);
$cs->registerScriptFile(
$url,
$this->position,
$options
);

Loading…
Cancel
Save