diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index 85953a3..3fe1473 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -99,11 +99,6 @@ class SiteController extends Controller return $this->renderAjax('forms-modal-fav', []); } - public function actionFormsModalHelp() - { - return $this->renderAjax('forms-modal-help', []); - } - public function actionFormsModalOffer() { return $this->renderAjax('forms-modal-offer', []); diff --git a/frontend/views/site/forms-modal-contacts.php b/frontend/views/site/forms-modal-contacts.php index d56695a..c9c4f1b 100644 --- a/frontend/views/site/forms-modal-contacts.php +++ b/frontend/views/site/forms-modal-contacts.php @@ -1 +1,16 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/frontend/views/site/forms-modal-help.php b/frontend/views/site/forms-modal-help.php index 1bb512a..3ba66b9 100644 --- a/frontend/views/site/forms-modal-help.php +++ b/frontend/views/site/forms-modal-help.php @@ -1,16 +1,3 @@ \ No newline at end of file diff --git a/frontend/web/js/forms.js b/frontend/web/js/forms.js index 86901b5..f2ee7d1 100755 --- a/frontend/web/js/forms.js +++ b/frontend/web/js/forms.js @@ -67,8 +67,8 @@ $(document).ready(function(){ - function addQuestions() { - $.post("site/forms-modal-help", function (data) { + function addContacts() { + $.post("/site/forms-modal-contacts", function (data) { $('.forms-modal-hide').append(data) }) .fail(function(){ @@ -87,10 +87,10 @@ $(document).ready(function(){ } - $('a.contactsLinkModal').click(function(e){ + $('a.contactsLinkModalFirst').click(function(e){ e.preventDefault() addRemoveBlocks() - addQuestions(); + addContacts(); }) clocseModalForms() -- libgit2 0.21.4