From 3588bd14e3b3e78cfeb4e984e7d44603b83d598f Mon Sep 17 00:00:00 2001 From: ArtemB Date: Tue, 15 Aug 2023 17:36:46 +0300 Subject: [PATCH] 0.0.96 --- static/css/styles.css | 21 ++++++++++++++++++++- static/img/svg/loader.svg | 2 +- static/js/user_profile.js | 12 ++++++++++-- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 19eca8e..c22fc4d 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1064,7 +1064,7 @@ form.new_route{ } -div.from_to_country>div>input:nth-child(3){ +input#id_from_address_point_txt{ display: block; border-radius: 15px; border: 1px solid #E6E6E6; @@ -1081,6 +1081,25 @@ div.from_to_country>div>input:nth-child(3){ margin-top: 10px; } +input#id_to_address_point_txt{ + display: block; + border-radius: 15px; + border: 1px solid #E6E6E6; + color: #272424; + font-family: Inter; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: 22px; + appearance: none; + background: white url("/static/img/png/icon-arrow.svg") no-repeat calc(100% - 15px) center; + width: 392px; + height: 60px; + margin-top: 10px; +} + + + div.departure_arrival>div>input{ diff --git a/static/img/svg/loader.svg b/static/img/svg/loader.svg index c25d5f3..bee2fe2 100644 --- a/static/img/svg/loader.svg +++ b/static/img/svg/loader.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 3e51df8..a8ab470 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -167,6 +167,8 @@ function confirmRemove(el) { function searchTown(el){ + document.getElementById('id_from_address_point_txt').style.background = 'white url("/static/img/svg/loader.svg") no-repeat calc(100% - 15px) center'; + document.getElementById('id_to_address_point_txt').style.background = 'white url("/static/img/svg/loader.svg") no-repeat calc(100% - 15px) center'; if(el.value.length>=3){ let timer = null @@ -193,8 +195,14 @@ function searchTown(el){ // enctype: 'json', data: JSON.stringify(get_address_point), success: function(data){ - getNewMessageSession() - return insertSearchList(data, el.name + '_list') + document.getElementById('id_from_address_point_txt').style.background = 'white url("/static/img/png/icon-arrow.svg") no-repeat calc(100% - 15px) center'; + document.getElementById('id_to_address_point_txt').style.background = 'white url("/static/img/png/icon-arrow.svg") no-repeat calc(100% - 15px) center'; + + + getNewMessageSession() + + return insertSearchList(data, el.name + '_list'); + }, error: function (data){