diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 0a95dfe..2b6ccd4 100755 --- a/frontend/views/catalog/product.php +++ b/frontend/views/catalog/product.php @@ -5,15 +5,17 @@ */ use common\components\artboximage\ArtboxImageHelper; use common\models\Orders; -use common\modules\product\models\Product; -use frontend\assets\FotoramaAsset; + use common\modules\product\models\Product; + use frontend\assets\FotoramaAsset; use frontend\widgets\Seo; use common\modules\comment\widgets\CommentWidget; use yii\bootstrap\ActiveForm; use yii\bootstrap\Html; -use yii\helpers\Url; -use yii\web\View; -use yii\widgets\MaskedInput; + use yii\helpers\Url; + use yii\web\View; + use yii\widgets\MaskedInput; + use frontend\assets\FlipclockAsset; + FlipclockAsset::register($this); FotoramaAsset::register($this); $this->title = $product->name; @@ -180,7 +182,7 @@ use yii\widgets\MaskedInput; $js = " var clock; - clock = $('.clock_$event->primaryKey').FlipClock({ + clock = new FlipClock($('.clock_$event->primaryKey'), { clockFace: 'DailyCounter', language: 'ru', classes: { diff --git a/frontend/views/event/_objects.php b/frontend/views/event/_objects.php index 2d029c2..3f09c4d 100755 --- a/frontend/views/event/_objects.php +++ b/frontend/views/event/_objects.php @@ -3,7 +3,8 @@ use yii\helpers\Url; use yii\web\View; - +use frontend\assets\FlipclockAsset; +FlipclockAsset::register($this); ?>