Commit 17fd0b92d121590413fa426654033e64b9386e12

Authored by Administrator
1 parent bc9441b0

big commti

frontend/views/catalog/product.php
@@ -201,7 +201,7 @@ @@ -201,7 +201,7 @@
201 clock.setCountdown(true); 201 clock.setCountdown(true);
202 clock.start(); 202 clock.start();
203 "; 203 ";
204 - $this->registerJs($js,View::POS_READY) 204 + $this->registerJs($js,View::POS_LOAD)
205 ?> 205 ?>
206 206
207 207
frontend/views/event/_objects.php
@@ -40,7 +40,7 @@ FlipclockAsset::register($this); @@ -40,7 +40,7 @@ FlipclockAsset::register($this);
40 clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s')))."); 40 clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s'))).");
41 clock.setCountdown(true); 41 clock.setCountdown(true);
42 clock.start();"; 42 clock.start();";
43 - $this->registerJs($js,View::POS_READY) ?> 43 + $this->registerJs($js,View::POS_LOAD) ?>
44 44
45 <?php } ?> 45 <?php } ?>
46 </div> 46 </div>
frontend/views/event/show.php
@@ -52,7 +52,7 @@ $this-&gt;params[&#39;seo&#39;][&#39;h1&#39;] = $this-&gt;title; @@ -52,7 +52,7 @@ $this-&gt;params[&#39;seo&#39;][&#39;h1&#39;] = $this-&gt;title;
52 clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s')))."); 52 clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s'))).");
53 clock.setCountdown(true); 53 clock.setCountdown(true);
54 clock.start();"; 54 clock.start();";
55 - $this->registerJs($js,View::POS_READY) ?> 55 + $this->registerJs($js,View::POS_LOAD) ?>
56 56
57 57
58 <?php 58 <?php
frontend/widgets/views/slider.php
@@ -39,7 +39,7 @@ FlipclockAsset::register($this); @@ -39,7 +39,7 @@ FlipclockAsset::register($this);
39 clock.setTime(".(strtotime($image->end_at) - strtotime(date('Y-m-d H:i:s')))."); 39 clock.setTime(".(strtotime($image->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 44
45 <?php 45 <?php