diff --git a/common/modules/product/views/variant/_form.php b/common/modules/product/views/variant/_form.php
index 37a8ba1..78194d9 100755
--- a/common/modules/product/views/variant/_form.php
+++ b/common/modules/product/views/variant/_form.php
@@ -37,7 +37,7 @@ $(".dynamicform_wrapper").on("limitReached", function(e, item) {
});
';
-$this->registerJs($js, View::POS_END);
+$this->registerJs($js, View::POS_READY);
?>
diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php
index c87db76..1a7229c 100755
--- a/frontend/views/catalog/product.php
+++ b/frontend/views/catalog/product.php
@@ -199,7 +199,7 @@ use yii\widgets\MaskedInput;
clock.setCountdown(true);
clock.start();
";
- $this->registerJs($js,View::POS_END)
+ $this->registerJs($js,View::POS_READY)
?>
diff --git a/frontend/views/event/_objects.php b/frontend/views/event/_objects.php
index c47ef6a..e1c4882 100755
--- a/frontend/views/event/_objects.php
+++ b/frontend/views/event/_objects.php
@@ -39,7 +39,7 @@ use yii\web\View;
clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s'))).");
clock.setCountdown(true);
clock.start();";
- $this->registerJs($js,View::POS_END) ?>
+ $this->registerJs($js,View::POS_READY) ?>
diff --git a/frontend/views/event/show.php b/frontend/views/event/show.php
index 02bf6be..59e278a 100755
--- a/frontend/views/event/show.php
+++ b/frontend/views/event/show.php
@@ -1,5 +1,7 @@
params['seo']['h1'] = $this->title;
clock.setTime(".(strtotime($model->end_at) - strtotime(date('Y-m-d H:i:s'))).");
clock.setCountdown(true);
clock.start();";
- $this->registerJs($js,View::POS_END) ?>
+ $this->registerJs($js,View::POS_READY) ?>
end_at) - strtotime(date('Y-m-d H:i:s'))).");
clock.setCountdown(true);
clock.start();";
- $this->registerJs($js,View::POS_END) ?>
+ $this->registerJs($js,View::POS_READY) ?>
registerJs($js,View::POS_END);
+$this->registerJs($js,View::POS_READY);
?>
--
libgit2 0.21.4