diff --git a/common/modules/product/views/variant/_form.php b/common/modules/product/views/variant/_form.php index 78194d9..1fcde25 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_READY); +$this->registerJs($js, View::POS_LOAD); ?>
diff --git a/frontend/views/catalog/product.php b/frontend/views/catalog/product.php index 1a7229c..0a95dfe 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_READY) + $this->registerJs($js,View::POS_LOAD) ?> diff --git a/frontend/views/event/_objects.php b/frontend/views/event/_objects.php index e1c4882..2d029c2 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_READY) ?> + $this->registerJs($js,View::POS_LOAD) ?>
diff --git a/frontend/views/event/show.php b/frontend/views/event/show.php index 59e278a..1319b2c 100755 --- a/frontend/views/event/show.php +++ b/frontend/views/event/show.php @@ -50,7 +50,7 @@ $this->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_READY) ?> + $this->registerJs($js,View::POS_LOAD) ?> registerJs($js, View::POS_READY); +$this->registerJs($js, View::POS_LOAD); ?> diff --git a/frontend/widgets/views/slider.php b/frontend/widgets/views/slider.php index d9c8e62..6a18d27 100755 --- a/frontend/widgets/views/slider.php +++ b/frontend/widgets/views/slider.php @@ -38,7 +38,7 @@ use yii\web\View; clock.setTime(".(strtotime($image->end_at) - strtotime(date('Y-m-d H:i:s')))."); clock.setCountdown(true); clock.start();"; - $this->registerJs($js,View::POS_READY) ?> + $this->registerJs($js,View::POS_LOAD) ?> registerJs($js,View::POS_READY); +$this->registerJs($js,View::POS_LOAD); ?> -- libgit2 0.21.4