Skip to content

Commit

Permalink
Updated to changes in js-code
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaakp committed Nov 1, 2015
1 parent 587d130 commit 0fce4cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions DatelineAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,19 @@ class DatelineAsset extends AssetBundle {
'madand\underscore\UnderscoreAsset',
];

public $sourcePath = '@bower/dateline/dist';
public $sourcePath = '@bower/dateline';

public $css = [
'jquery.dateline.css'
'css/jquery.dateline.css'
];

public $publishOptions = [
'only' => [ 'css/*.css', 'js/*' ]
];

public function init() {
parent::init();

$this->js[] = YII_DEBUG ? 'jquery.dateline.js' : 'jquery.dateline.min.js';
$this->js[] = YII_DEBUG ? 'js/jquery.dateline.js' : 'js/jquery.dateline.min.js';
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A demonstration of Dateline widget is [here](http://www.sjaakpriester.nl/softwar

## Installation ##

The preferred way to install **Dateline** is through [Composer](https://getcomposer.org/). Either add the following to the require section of your `composer.json` file:
Install **Dateline** with [Composer](https://getcomposer.org/). Either add the following to the require section of your `composer.json` file:

`"sjaakp/yii2-dateline": "*"`

Expand Down

0 comments on commit 0fce4cd

Please sign in to comment.