0.0.295 fix disabled buttons in different forms

This commit is contained in:
2023-12-01 21:34:57 +03:00
parent 9ed06e741e
commit 1720e156d2
4 changed files with 32 additions and 16 deletions

View File

@@ -918,7 +918,7 @@
width: 100%;
}
.counter-box>textarea{
width: calc(100% - 10px);
width: calc(100% - 15px);
max-width: unset;
min-width: unset;
}

View File

@@ -1908,14 +1908,26 @@ button#edit_route {
.msg_sub_text{
font-size: 16px;
margin-top: 15px;
font-weight: 500;
cursor: pointer;
background: #FF613A;
color: #FFF;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12);
line-height: 34px;
width: 100px;
border-radius: 10px;
text-align: center;
margin: 20px auto;
}
.close_msg_block{
cursor: pointer;
}
#error_com_offer, #error_feedback{
color: #ff0000;
font-size: 14px;
margin-left: 10px;
margin-left: 5px;
}
.msg_text {

View File

@@ -202,11 +202,19 @@ function cancelRemove(route_id) {
function hideBlock(el) {
el.classList.add('hide')
let clear_form = document.getElementsByClassName('clear_form');
clear_form[0].reset();
let clear_form_com = document.getElementsByClassName('commercial_offer');
clear_form_com[0].reset();
let clear_form = document.querySelector('.clear_form');
if(clear_form){
clear_form.reset();
}
let clear_form_com = document.querySelector('.commercial_offer');
if(clear_form_com){
clear_form_com.reset();
}
@@ -219,12 +227,11 @@ function hideBlock(el) {
let disable_btn_r = document.getElementById('request_btn');
if(disable_btn_r){
disable_btn_r.removeAttribute('disabled');
}
let disable_btn_r = document.getElementById('request_btn');
if(disable_btn_r){
disable_btn_r.removeAttribute('disabled');
}
}
@@ -898,9 +905,6 @@ function RequestCommercialOffer (el){
let hide_error_msg = document.getElementById('error_footer').classList.add('hide')
}
clear_form_com[0].reset();
},
error: function (data, exception){
// document.querySelector(".login").innerHTML = data.responseJSON.html

View File

@@ -5,7 +5,7 @@
onclick="hideBlock(this)"
class="msg_send"
>
{# <img class="close_msg_block" src="/static/img/svg/icon_cross_2.svg">#}
<div class="msg_text"> {% translate 'Ваше сообщение отправлено' %}</div>
<div class="msg_sub_text"> {% translate 'Закрыть' %}</div>