From 6e2c38b47e5f439403c447565188271582c05901 Mon Sep 17 00:00:00 2001 From: zhegal Date: Mon, 12 Mar 2018 16:18:56 +0200 Subject: [PATCH] button classes --- frontend/web/js/script.js | 68 +++++++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js index 91b3fa8..a706d14 100755 --- a/frontend/web/js/script.js +++ b/frontend/web/js/script.js @@ -112,38 +112,40 @@ $( } ); -// $(".close, .modal.fade").on('click', function(){ -// $("#feedback-form")['0'].reset(); -// $(".send-form").removeClass("specialist"); -// $(".send-form").removeClass("calculate"); -// $(".send-form").removeClass("order"); -// $(".send-form").removeClass("call"); -// $(".send-form").removeClass("callback"); -// $(".send-form").removeClass("consultation"); -// }); -// $(".press-consultation").on('click',function(){ -// $("#feedback-form")['0'].reset(); -// $(".send-form").addClass("consultation"); -// }); -// $(".press-specialist").on('click',function(){ -// $("#feedback-form")['0'].reset(); -// $(".send-form").addClass("specialist"); -// }); -// $(".press-calculate").on('click',function(){ -// $("#feedback-form")['0'].reset(); -// $(".send-form").addClass("calculate"); -// }); -// $(".press-order").on('click',function(){ -// $("#feedback-form")['0'].reset(); -// $(".send-form").addClass("order"); -// }); -// $(".press-call").on('click',function(){ -// $("#feedback-form")['0'].reset(); -// $(".send-form").addClass("call"); -// }); -// $(".press-callback").on('click',function(){ -// $("#feedback-form")['0'].reset(); -// $(".send-form").addClass("callback"); -// }); + /* нужно для гугл аналитики */ + + $(".close, .modal.fade").on('click', function(){ + // $("#feedback-form")['0'].reset(); + $(".send-form").removeClass("specialist"); + $(".send-form").removeClass("calculate"); + $(".send-form").removeClass("order"); + $(".send-form").removeClass("call"); + $(".send-form").removeClass("callback"); + $(".send-form").removeClass("consultation"); + }); + $(".press-consultation").on('click',function(){ + // $("#feedback-form")['0'].reset(); + $(".send-form").addClass("consultation"); + }); + $(".press-specialist").on('click',function(){ + // $("#feedback-form")['0'].reset(); + $(".send-form").addClass("specialist"); + }); + $(".press-calculate").on('click',function(){ + // $("#feedback-form")['0'].reset(); + $(".send-form").addClass("calculate"); + }); + $(".press-order").on('click',function(){ + // $("#feedback-form")['0'].reset(); + $(".send-form").addClass("order"); + }); + $(".press-call").on('click',function(){ + // $("#feedback-form")['0'].reset(); + $(".send-form").addClass("call"); + }); + $(".press-callback").on('click',function(){ + // $("#feedback-form")['0'].reset(); + $(".send-form").addClass("callback"); + }); } ); \ No newline at end of file -- libgit2 0.21.4