Commit bc9441b0215e60fde0e74660a49518a1c3466e80
1 parent
d51a2c71
big commti
Showing
4 changed files
with
5 additions
and
5 deletions
Show diff stats
frontend/views/catalog/product.php
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_LOAD) ?> | 43 | + $this->registerJs($js,View::POS_READY) ?> |
44 | 44 | ||
45 | <?php } ?> | 45 | <?php } ?> |
46 | </div> | 46 | </div> |
frontend/views/event/show.php
@@ -52,7 +52,7 @@ $this->params['seo']['h1'] = $this->title; | @@ -52,7 +52,7 @@ $this->params['seo']['h1'] = $this->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_LOAD) ?> | 55 | + $this->registerJs($js,View::POS_READY) ?> |
56 | 56 | ||
57 | 57 | ||
58 | <?php | 58 | <?php |
frontend/widgets/views/slider.php
@@ -21,7 +21,7 @@ FlipclockAsset::register($this); | @@ -21,7 +21,7 @@ FlipclockAsset::register($this); | ||
21 | ?> | 21 | ?> |
22 | <div class="clock_style clock_<?= $image->primaryKey ?>"></div> | 22 | <div class="clock_style clock_<?= $image->primaryKey ?>"></div> |
23 | <?php $js = "var clock; | 23 | <?php $js = "var clock; |
24 | - clock = new FlipClock('.clock_". $image->primaryKey ."'), { | 24 | + clock = new FlipClock($('.clock_". $image->primaryKey ."'), { |
25 | clockFace: 'DailyCounter', | 25 | clockFace: 'DailyCounter', |
26 | language: 'ru', | 26 | language: 'ru', |
27 | classes: { | 27 | classes: { |
@@ -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_LOAD) ?> | 42 | + $this->registerJs($js,View::POS_READY) ?> |
43 | 43 | ||
44 | 44 | ||
45 | <?php | 45 | <?php |