Commit 8834b16827f313917e6530cc54f7ec3e2834d5f9
1 parent
353c0f81
big commti
Showing
5 changed files
with
9 additions
and
7 deletions
Show diff stats
common/modules/product/views/variant/_form.php
frontend/views/catalog/product.php
frontend/views/event/_objects.php
... | ... | @@ -39,7 +39,7 @@ use yii\web\View; |
39 | 39 | clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s')))."); |
40 | 40 | clock.setCountdown(true); |
41 | 41 | clock.start();"; |
42 | - $this->registerJs($js,View::POS_END) ?> | |
42 | + $this->registerJs($js,View::POS_READY) ?> | |
43 | 43 | |
44 | 44 | <?php } ?> |
45 | 45 | </div> | ... | ... |
frontend/views/event/show.php
1 | 1 | <?php |
2 | - | |
2 | +/** | |
3 | + * @var $this View | |
4 | + */ | |
3 | 5 | |
4 | 6 | use yii\web\View; |
5 | 7 | use yii\widgets\ListView; |
... | ... | @@ -48,7 +50,7 @@ $this->params['seo']['h1'] = $this->title; |
48 | 50 | clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s')))."); |
49 | 51 | clock.setCountdown(true); |
50 | 52 | clock.start();"; |
51 | - $this->registerJs($js,View::POS_END) ?> | |
53 | + $this->registerJs($js,View::POS_READY) ?> | |
52 | 54 | |
53 | 55 | |
54 | 56 | <?php | ... | ... |
frontend/widgets/views/slider.php
... | ... | @@ -38,7 +38,7 @@ use yii\web\View; |
38 | 38 | clock.setTime(".(strtotime($image->end_at) - strtotime(date('Y-m-d H:i:s')))."); |
39 | 39 | clock.setCountdown(true); |
40 | 40 | clock.start();"; |
41 | - $this->registerJs($js,View::POS_END) ?> | |
41 | + $this->registerJs($js,View::POS_READY) ?> | |
42 | 42 | |
43 | 43 | |
44 | 44 | <?php |
... | ... | @@ -72,6 +72,6 @@ $js=" $(\"#$title\").owlCarousel({ |
72 | 72 | }) |
73 | 73 | "; |
74 | 74 | |
75 | -$this->registerJs($js,View::POS_END); | |
75 | +$this->registerJs($js,View::POS_READY); | |
76 | 76 | |
77 | 77 | ?> | ... | ... |