Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
ed7d161d
Commit
ed7d161d
authored
Dec 24, 2018
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2654 - Важно - Не работет форма обратной саязи на сайте
parent
0b3a0d32
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
frontend/assets/FileUploadBundle.php
frontend/assets/FileUploadBundle.php
+3
-0
frontend/views/site/contacts.php
frontend/views/site/contacts.php
+7
-6
No files found.
frontend/assets/FileUploadBundle.php
View file @
ed7d161d
...
...
@@ -24,4 +24,7 @@ class FileUploadBundle extends AssetBundle
'js/dropzone.js'
,
'js/upload-files.js'
];
public
$depends
=
[
'yii\web\YiiAsset'
,
];
}
frontend/views/site/contacts.php
View file @
ed7d161d
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment