Commit 067781e2d478deece3e33449015f7ecde46bb430
1 parent
f42169e7
firs page
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
frontend/controllers/SiteController.php
@@ -91,6 +91,7 @@ class SiteController extends Controller | @@ -91,6 +91,7 @@ class SiteController extends Controller | ||
91 | 91 | ||
92 | 92 | ||
93 | 93 | ||
94 | + | ||
94 | public function actionFormsModal() | 95 | public function actionFormsModal() |
95 | { | 96 | { |
96 | return $this->renderAjax('forms-modal', [ | 97 | return $this->renderAjax('forms-modal', [ |
frontend/web/js/no-comprss/forms-nocompress.js
1 | $(document).ready(function(){ | 1 | $(document).ready(function(){ |
2 | if($('.blog-buttons-add-favorite, .performance-vacancy-add-favorite a, .get-list, .main-menu-icons-copy, .blog-buttons-offer, .get-project, .main-menu-icons-home').length>0) { | 2 | if($('.blog-buttons-add-favorite, .performance-vacancy-add-favorite a, .get-list, .main-menu-icons-copy, .blog-buttons-offer, .get-project, .main-menu-icons-home').length>0) { |
3 | - var overlayLength = $('#overlay').length | 3 | + var overlayLength = $('#overlay').length; |
4 | $.post("site/forms-modal", function (data) { | 4 | $.post("site/forms-modal", function (data) { |
5 | if ( !overlayLength>0 ){ | 5 | if ( !overlayLength>0 ){ |
6 | $("body").append('<div id="overlay"></div>'); | 6 | $("body").append('<div id="overlay"></div>'); |