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

parent 0b3a0d32
......@@ -24,4 +24,7 @@ class FileUploadBundle extends AssetBundle
'js/dropzone.js',
'js/upload-files.js'
];
public $depends = [
'yii\web\YiiAsset',
];
}
......@@ -8,6 +8,10 @@ use \common\modules\languages\models\Languages;
use frontend\assets\FileUploadBundle;
/**
* @var $this \yii\web\View
*/
FileUploadBundle::register($this);
$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('/js/ymaps.js', ['position' => yii\web\View::POS_HEAD]); ?>
<script type="text/javascript">
$(document).delegate('.show-scheme', 'click', function(e) {
<?php $this->registerJs('$(document).delegate(\'.show-scheme\', \'click\', function(e) {
e.preventDefault();
$('.tab_' + $(this).data('tab')).click();
});
</script>
$(\'.tab_\' + $(this).data(\'tab\')).click();
});'); ?>
<section class="section1_cont">
<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