diff --git a/frontend/assets/AppAsset.php b/frontend/assets/AppAsset.php index 40fff2a..cc9549c 100755 --- a/frontend/assets/AppAsset.php +++ b/frontend/assets/AppAsset.php @@ -32,6 +32,7 @@ class AppAsset extends AssetBundle 'yii\web\JqueryAsset', 'sersid\owlcarousel\Asset', 'yii\bootstrap\BootstrapPluginAsset', + 'frontend\assets\FlipclockAsset', ]; public function init() { diff --git a/frontend/assets/FlipclockAsset.php b/frontend/assets/FlipclockAsset.php index 9fc2a19..5a26f26 100755 --- a/frontend/assets/FlipclockAsset.php +++ b/frontend/assets/FlipclockAsset.php @@ -23,7 +23,6 @@ class FlipclockAsset extends AssetBundle 'flipclock/compiled/flipclock.min.js' ]; public $jsOptions = array( - 'position' => \yii\web\View::POS_END, - 'depends' => ['yii\web\JqueryAsset'] + 'position' => \yii\web\View::POS_END ); } diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 244a88d..c87db76 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -14,9 +14,7 @@ use frontend\assets\FotoramaAsset; use yii\helpers\Url; use yii\web\View; use yii\widgets\MaskedInput; -use frontend\assets\FlipclockAsset; FotoramaAsset::register($this); - FlipclockAsset::register($this); $this->title = $product->name; diff --git a/frontend/views/event/_objects.php b/frontend/views/event/_objects.php index f25b9ef..10bac2b 100755 --- a/frontend/views/event/_objects.php +++ b/frontend/views/event/_objects.php @@ -1,11 +1,9 @@