diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 39a8c57..0000000 --- a/.gitattributes +++ /dev/null @@ -1,26 +0,0 @@ -# Autodetect text files -* text=auto - -# ...Unless the name matches the following overriding patterns - -# Definitively text files -*.php text -*.css text -*.js text -*.txt text -*.md text -*.xml text -*.json text -*.bat text -*.sql text -*.xml text -*.yml text - -# Ensure those won't be messed up with -*.png binary -*.jpg binary -*.gif binary -*.ttf binary -*.svg binary -*.eot binary -*.woff binary diff --git a/fancytree/FancytreeAsset.php b/FancytreeAsset.php similarity index 89% rename from fancytree/FancytreeAsset.php rename to FancytreeAsset.php index dbfe9dd..de72501 100644 --- a/fancytree/FancytreeAsset.php +++ b/FancytreeAsset.php @@ -19,6 +19,7 @@ class FancytreeAsset extends \yii\web\AssetBundle */ public $depends = [ 'yii\web\JqueryAsset', + 'yii\jui\JuiAsset' ]; /** @@ -44,9 +45,9 @@ class FancytreeAsset extends \yii\web\AssetBundle */ public function init() { - $this->setSourcePath(__DIR__ . '/../assets'); + $this->setSourcePath(__DIR__ . '/assets'); $this->setupAssets('css', ['skin-lion/ui.fancytree']); - $this->setupAssets('js', ['http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui', 'jquery.fancytree']); + $this->setupAssets('js', ['jquery.fancytree']); parent::init(); } diff --git a/fancytree/FancytreeWidget.php b/FancytreeWidget.php similarity index 100% rename from fancytree/FancytreeWidget.php rename to FancytreeWidget.php diff --git a/composer.json b/composer.json index 2b17354..6525d43 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,6 @@ "yiisoft/yii2-jui": "*" }, "autoload": { - "psr-4": { "wbraganca\\": "" } + "psr-4": { "wbraganca\\fancytree\\": "" } } }