Commit e03dd9318a8d0b71ad113e39fa9545e7b7223784
1 parent
349ebe00
-collection
Showing
1 changed file
with
7 additions
and
5 deletions
Show diff stats
common/modules/product/widgets/views/products_block_similar.php
| @@ -28,9 +28,8 @@ | @@ -28,9 +28,8 @@ | ||
| 28 | ); | 28 | ); |
| 29 | } ?> | 29 | } ?> |
| 30 | </div> | 30 | </div> |
| 31 | - <script> | ||
| 32 | - $(document).ready(function () { | ||
| 33 | - $("#collection .new_collection").owlCarousel({ | 31 | + |
| 32 | + <?php $js = "$(\"#collection .new_collection\").owlCarousel({ | ||
| 34 | navigation : true, // Show next and prev buttons | 33 | navigation : true, // Show next and prev buttons |
| 35 | slideSpeed : 500, | 34 | slideSpeed : 500, |
| 36 | autoplayTimeout:3000, | 35 | autoplayTimeout:3000, |
| @@ -39,9 +38,12 @@ | @@ -39,9 +38,12 @@ | ||
| 39 | autoPlay:true | 38 | autoPlay:true |
| 40 | 39 | ||
| 41 | }); | 40 | }); |
| 42 | - }) | 41 | +"; |
| 43 | 42 | ||
| 44 | - </script> | 43 | + |
| 44 | + | ||
| 45 | + $this->registerJs($js, View::POS_LOAD); | ||
| 46 | + ?> | ||
| 45 | <div class="clearfix"></div> | 47 | <div class="clearfix"></div> |
| 46 | 48 | ||
| 47 | </div> | 49 | </div> |