2654 - Важно - Не работет форма обратной саязи на сайте

parent 0b3a0d32
...@@ -24,4 +24,7 @@ class FileUploadBundle extends AssetBundle ...@@ -24,4 +24,7 @@ class FileUploadBundle extends AssetBundle
'js/dropzone.js', 'js/dropzone.js',
'js/upload-files.js' 'js/upload-files.js'
]; ];
public $depends = [
'yii\web\YiiAsset',
];
} }
...@@ -8,6 +8,10 @@ use \common\modules\languages\models\Languages; ...@@ -8,6 +8,10 @@ use \common\modules\languages\models\Languages;
use frontend\assets\FileUploadBundle; use frontend\assets\FileUploadBundle;
/**
* @var $this \yii\web\View
*/
FileUploadBundle::register($this); FileUploadBundle::register($this);
$lang = Languages::getCurrent(); $lang = Languages::getCurrent();
...@@ -15,13 +19,10 @@ $lang = Languages::getCurrent(); ...@@ -15,13 +19,10 @@ $lang = Languages::getCurrent();
<?php $this->registerJsFile('https://api-maps.yandex.ru/2.1/?lang=ru_RU', ['position' => yii\web\View::POS_HEAD]); ?> <?php $this->registerJsFile('https://api-maps.yandex.ru/2.1/?lang=ru_RU', ['position' => yii\web\View::POS_HEAD]); ?>
<?php $this->registerJsFile('/js/ymaps.js', ['position' => yii\web\View::POS_HEAD]); ?> <?php $this->registerJsFile('/js/ymaps.js', ['position' => yii\web\View::POS_HEAD]); ?>
<?php $this->registerJs('$(document).delegate(\'.show-scheme\', \'click\', function(e) {
<script type="text/javascript">
$(document).delegate('.show-scheme', 'click', function(e) {
e.preventDefault(); e.preventDefault();
$('.tab_' + $(this).data('tab')).click(); $(\'.tab_\' + $(this).data(\'tab\')).click();
}); });'); ?>
</script>
<section class="section1_cont"> <section class="section1_cont">
<div class="container"> <div class="container">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment