Commit 1bb3eff28999523f5db4e98b4d42b15c8c2cdb98
1 parent
0b45a966
button classes
Showing
1 changed file
with
7 additions
and
12 deletions
Show diff stats
frontend/web/js/script.js
| @@ -116,36 +116,31 @@ $( | @@ -116,36 +116,31 @@ $( | ||
| 116 | 116 | ||
| 117 | $(".close, .modal.fade").on('click', function(){ | 117 | $(".close, .modal.fade").on('click', function(){ |
| 118 | // $("#feedback-form")['0'].reset(); | 118 | // $("#feedback-form")['0'].reset(); |
| 119 | - $(".send-form").removeClass("specialist"); | ||
| 120 | - $(".send-form").removeClass("calculate"); | ||
| 121 | - $(".send-form").removeClass("order"); | ||
| 122 | - $(".send-form").removeClass("call"); | ||
| 123 | - $(".send-form").removeClass("callback"); | ||
| 124 | - $(".send-form").removeClass("consultation"); | 119 | + $(".send-form").removeAttr("id") |
| 125 | }); | 120 | }); |
| 126 | $(".press-consultation").on('click',function(){ | 121 | $(".press-consultation").on('click',function(){ |
| 127 | // $("#feedback-form")['0'].reset(); | 122 | // $("#feedback-form")['0'].reset(); |
| 128 | - $(".send-form").addClass("consultation"); | 123 | + $(".send-form").attr('id', 'consultation'); |
| 129 | }); | 124 | }); |
| 130 | $(".press-specialist").on('click',function(){ | 125 | $(".press-specialist").on('click',function(){ |
| 131 | // $("#feedback-form")['0'].reset(); | 126 | // $("#feedback-form")['0'].reset(); |
| 132 | - $(".send-form").addClass("specialist"); | 127 | + $(".send-form").attr('id', 'specialist'); |
| 133 | }); | 128 | }); |
| 134 | $(".press-calculate").on('click',function(){ | 129 | $(".press-calculate").on('click',function(){ |
| 135 | // $("#feedback-form")['0'].reset(); | 130 | // $("#feedback-form")['0'].reset(); |
| 136 | - $(".send-form").addClass("calculate"); | 131 | + $(".send-form").attr('id', 'calculate'); |
| 137 | }); | 132 | }); |
| 138 | $(".press-order").on('click',function(){ | 133 | $(".press-order").on('click',function(){ |
| 139 | // $("#feedback-form")['0'].reset(); | 134 | // $("#feedback-form")['0'].reset(); |
| 140 | - $(".send-form").addClass("order"); | 135 | + $(".send-form").attr('id', 'order'); |
| 141 | }); | 136 | }); |
| 142 | $(".press-call").on('click',function(){ | 137 | $(".press-call").on('click',function(){ |
| 143 | // $("#feedback-form")['0'].reset(); | 138 | // $("#feedback-form")['0'].reset(); |
| 144 | - $(".send-form").addClass("call"); | 139 | + $(".send-form").attr('id', 'call'); |
| 145 | }); | 140 | }); |
| 146 | $(".press-callback").on('click',function(){ | 141 | $(".press-callback").on('click',function(){ |
| 147 | // $("#feedback-form")['0'].reset(); | 142 | // $("#feedback-form")['0'].reset(); |
| 148 | - $(".send-form").addClass("callback"); | 143 | + $(".send-form").attr('id', 'callback'); |
| 149 | }); | 144 | }); |
| 150 | } | 145 | } |
| 151 | ); | 146 | ); |
| 152 | \ No newline at end of file | 147 | \ No newline at end of file |