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