Skip to content

Commit

Permalink
new asset WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Aug 28, 2014
1 parent eb7ffc8 commit 1a62551
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions extensions/debug/DebugAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
class DebugAsset extends AssetBundle
{
public $css = [
'yii2-debug\assets\main.css',
'yii2-debug\assets\toolbar.css',
'yii2-debug/assets/main.css',
'yii2-debug/assets/toolbar.css',
];
public $depends = [
'yii\web\YiiAsset',
Expand Down
3 changes: 1 addition & 2 deletions framework/captcha/CaptchaAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
*/
class CaptchaAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'yii.captcha.js',
'yii2/assets/yii.captcha.js',
];
public $depends = [
'yii\web\YiiAsset',
Expand Down
3 changes: 1 addition & 2 deletions framework/grid/GridViewAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
*/
class GridViewAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'yii.gridView.js',
'yii2/assets/yii.gridView.js',
];
public $depends = [
'yii\web\YiiAsset',
Expand Down
1 change: 0 additions & 1 deletion framework/validators/PunycodeAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class PunycodeAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'punycode/punycode.js',
];
Expand Down
3 changes: 1 addition & 2 deletions framework/validators/ValidationAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
*/
class ValidationAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'yii.validation.js',
'yii2/assets/yii.validation.js',
];
public $depends = [
'yii\web\YiiAsset',
Expand Down
3 changes: 1 addition & 2 deletions framework/widgets/ActiveFormAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
*/
class ActiveFormAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'yii.activeForm.js',
'yii2/assets/yii.activeForm.js',
];
public $depends = [
'yii\web\YiiAsset',
Expand Down
3 changes: 1 addition & 2 deletions framework/widgets/MaskedInputAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
*/
class MaskedInputAsset extends AssetBundle
{
public $sourcePath = '@yii/assets';
public $js = [
'jquery.inputmask.bundle.min.js'
'jquery.inputmask/dist/jquery.inputmask.bundle.js'
];
public $depends = [
'yii\web\YiiAsset'
Expand Down
3 changes: 1 addition & 2 deletions framework/widgets/PjaxAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
*/
class PjaxAsset extends AssetBundle
{
public $sourcePath = '@vendor/yiisoft/jquery-pjax';
public $js = [
'jquery.pjax.js',
'yii2-pjax/jquery.pjax.js',
];
public $depends = [
'yii\web\YiiAsset',
Expand Down

0 comments on commit 1a62551

Please sign in to comment.