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 | 116 | |
117 | 117 | $(".close, .modal.fade").on('click', function(){ |
118 | 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 | 121 | $(".press-consultation").on('click',function(){ |
127 | 122 | // $("#feedback-form")['0'].reset(); |
128 | - $(".send-form").addClass("consultation"); | |
123 | + $(".send-form").attr('id', 'consultation'); | |
129 | 124 | }); |
130 | 125 | $(".press-specialist").on('click',function(){ |
131 | 126 | // $("#feedback-form")['0'].reset(); |
132 | - $(".send-form").addClass("specialist"); | |
127 | + $(".send-form").attr('id', 'specialist'); | |
133 | 128 | }); |
134 | 129 | $(".press-calculate").on('click',function(){ |
135 | 130 | // $("#feedback-form")['0'].reset(); |
136 | - $(".send-form").addClass("calculate"); | |
131 | + $(".send-form").attr('id', 'calculate'); | |
137 | 132 | }); |
138 | 133 | $(".press-order").on('click',function(){ |
139 | 134 | // $("#feedback-form")['0'].reset(); |
140 | - $(".send-form").addClass("order"); | |
135 | + $(".send-form").attr('id', 'order'); | |
141 | 136 | }); |
142 | 137 | $(".press-call").on('click',function(){ |
143 | 138 | // $("#feedback-form")['0'].reset(); |
144 | - $(".send-form").addClass("call"); | |
139 | + $(".send-form").attr('id', 'call'); | |
145 | 140 | }); |
146 | 141 | $(".press-callback").on('click',function(){ |
147 | 142 | // $("#feedback-form")['0'].reset(); |
148 | - $(".send-form").addClass("callback"); | |
143 | + $(".send-form").attr('id', 'callback'); | |
149 | 144 | }); |
150 | 145 | } |
151 | 146 | ); |
152 | 147 | \ No newline at end of file | ... | ... |