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
@@ -37,7 +37,7 @@ $(".dynamicform_wrapper").on("limitReached", function(e, item) { | @@ -37,7 +37,7 @@ $(".dynamicform_wrapper").on("limitReached", function(e, item) { | ||
37 | }); | 37 | }); |
38 | '; | 38 | '; |
39 | 39 | ||
40 | -$this->registerJs($js, View::POS_END); | 40 | +$this->registerJs($js, View::POS_READY); |
41 | ?> | 41 | ?> |
42 | <div class="product-form"> | 42 | <div class="product-form"> |
43 | 43 |
frontend/views/catalog/product.php
@@ -199,7 +199,7 @@ use yii\widgets\MaskedInput; | @@ -199,7 +199,7 @@ use yii\widgets\MaskedInput; | ||
199 | clock.setCountdown(true); | 199 | clock.setCountdown(true); |
200 | clock.start(); | 200 | clock.start(); |
201 | "; | 201 | "; |
202 | - $this->registerJs($js,View::POS_END) | 202 | + $this->registerJs($js,View::POS_READY) |
203 | ?> | 203 | ?> |
204 | 204 | ||
205 | 205 |
frontend/views/event/_objects.php
@@ -39,7 +39,7 @@ use yii\web\View; | @@ -39,7 +39,7 @@ use yii\web\View; | ||
39 | clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s')))."); | 39 | clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s')))."); |
40 | clock.setCountdown(true); | 40 | clock.setCountdown(true); |
41 | clock.start();"; | 41 | clock.start();"; |
42 | - $this->registerJs($js,View::POS_END) ?> | 42 | + $this->registerJs($js,View::POS_READY) ?> |
43 | 43 | ||
44 | <?php } ?> | 44 | <?php } ?> |
45 | </div> | 45 | </div> |
frontend/views/event/show.php
1 | <?php | 1 | <?php |
2 | - | 2 | +/** |
3 | + * @var $this View | ||
4 | + */ | ||
3 | 5 | ||
4 | use yii\web\View; | 6 | use yii\web\View; |
5 | use yii\widgets\ListView; | 7 | use yii\widgets\ListView; |
@@ -48,7 +50,7 @@ $this->params['seo']['h1'] = $this->title; | @@ -48,7 +50,7 @@ $this->params['seo']['h1'] = $this->title; | ||
48 | clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s')))."); | 50 | clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s')))."); |
49 | clock.setCountdown(true); | 51 | clock.setCountdown(true); |
50 | clock.start();"; | 52 | clock.start();"; |
51 | - $this->registerJs($js,View::POS_END) ?> | 53 | + $this->registerJs($js,View::POS_READY) ?> |
52 | 54 | ||
53 | 55 | ||
54 | <?php | 56 | <?php |
frontend/widgets/views/slider.php
@@ -38,7 +38,7 @@ use yii\web\View; | @@ -38,7 +38,7 @@ use yii\web\View; | ||
38 | clock.setTime(".(strtotime($image->end_at) - strtotime(date('Y-m-d H:i:s')))."); | 38 | clock.setTime(".(strtotime($image->end_at) - strtotime(date('Y-m-d H:i:s')))."); |
39 | clock.setCountdown(true); | 39 | clock.setCountdown(true); |
40 | clock.start();"; | 40 | clock.start();"; |
41 | - $this->registerJs($js,View::POS_END) ?> | 41 | + $this->registerJs($js,View::POS_READY) ?> |
42 | 42 | ||
43 | 43 | ||
44 | <?php | 44 | <?php |
@@ -72,6 +72,6 @@ $js=" $(\"#$title\").owlCarousel({ | @@ -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 | ?> |