Commit df1952f4d781b1733ba60030971743264003b624

Authored by Administrator
1 parent 8834b168

big commti

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_READY); 40 +$this->registerJs($js, View::POS_LOAD);
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_READY) 202 + $this->registerJs($js,View::POS_LOAD)
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_READY) ?> 42 + $this->registerJs($js,View::POS_LOAD) ?>
43 43
44 <?php } ?> 44 <?php } ?>
45 </div> 45 </div>
frontend/views/event/show.php
@@ -50,7 +50,7 @@ $this-&gt;params[&#39;seo&#39;][&#39;h1&#39;] = $this-&gt;title; @@ -50,7 +50,7 @@ $this-&gt;params[&#39;seo&#39;][&#39;h1&#39;] = $this-&gt;title;
50 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'))).");
51 clock.setCountdown(true); 51 clock.setCountdown(true);
52 clock.start();"; 52 clock.start();";
53 - $this->registerJs($js,View::POS_READY) ?> 53 + $this->registerJs($js,View::POS_LOAD) ?>
54 54
55 55
56 <?php 56 <?php
frontend/views/site/index.php
@@ -62,6 +62,6 @@ responsiveClass: true, @@ -62,6 +62,6 @@ responsiveClass: true,
62 62
63 63
64 64
65 -$this->registerJs($js, View::POS_READY); 65 +$this->registerJs($js, View::POS_LOAD);
66 ?> 66 ?>
67 67
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_READY) ?> 41 + $this->registerJs($js,View::POS_LOAD) ?>
42 42
43 43
44 <?php 44 <?php
@@ -72,6 +72,6 @@ $js=&quot; $(\&quot;#$title\&quot;).owlCarousel({ @@ -72,6 +72,6 @@ $js=&quot; $(\&quot;#$title\&quot;).owlCarousel({
72 }) 72 })
73 "; 73 ";
74 74
75 -$this->registerJs($js,View::POS_READY); 75 +$this->registerJs($js,View::POS_LOAD);
76 76
77 ?> 77 ?>