From 1bb3eff28999523f5db4e98b4d42b15c8c2cdb98 Mon Sep 17 00:00:00 2001 From: zhegal Date: Mon, 12 Mar 2018 17:18:52 +0200 Subject: [PATCH] button classes --- frontend/web/js/script.js | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/frontend/web/js/script.js b/frontend/web/js/script.js index a706d14..567c78c 100755 --- a/frontend/web/js/script.js +++ b/frontend/web/js/script.js @@ -116,36 +116,31 @@ $( $(".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"); + $(".send-form").removeAttr("id") }); $(".press-consultation").on('click',function(){ // $("#feedback-form")['0'].reset(); - $(".send-form").addClass("consultation"); + $(".send-form").attr('id', 'consultation'); }); $(".press-specialist").on('click',function(){ // $("#feedback-form")['0'].reset(); - $(".send-form").addClass("specialist"); + $(".send-form").attr('id', 'specialist'); }); $(".press-calculate").on('click',function(){ // $("#feedback-form")['0'].reset(); - $(".send-form").addClass("calculate"); + $(".send-form").attr('id', 'calculate'); }); $(".press-order").on('click',function(){ // $("#feedback-form")['0'].reset(); - $(".send-form").addClass("order"); + $(".send-form").attr('id', 'order'); }); $(".press-call").on('click',function(){ // $("#feedback-form")['0'].reset(); - $(".send-form").addClass("call"); + $(".send-form").attr('id', 'call'); }); $(".press-callback").on('click',function(){ // $("#feedback-form")['0'].reset(); - $(".send-form").addClass("callback"); + $(".send-form").attr('id', 'callback'); }); } ); \ No newline at end of file -- libgit2 0.21.4