diff --git a/static/css/styles(boris).css b/static/css/styles(boris).css index 9770a9b..008796e 100644 --- a/static/css/styles(boris).css +++ b/static/css/styles(boris).css @@ -221,6 +221,7 @@ -webkit-background-clip: text; -webkit-text-fill-color: transparent; float: left; + height: 20px; } .message-sprt-inf{ diff --git a/static/css/styles.css b/static/css/styles.css index 14eb812..ff1560e 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1895,6 +1895,7 @@ button#edit_route { position: absolute; height: -webkit-fill-available; width: -webkit-fill-available; + width: -moz-available; } #error_footer{ diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 0632488..7031b6a 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -411,6 +411,19 @@ function onblurInputField(event,el){ // } } +function clearID(el) { + el.select(); + + if(el.id === 'id_from_address_point_txt'){ + document.getElementById('id_from_address_point').value = '' + } else if(el.id === 'id_to_address_point_txt'){ + document.getElementById('id_to_address_point').value = '' + } + + + +} + // function hideErrorMsg(el) { // let hide_element = document.querySelector() diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index c250f66..8167f3d 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -122,7 +122,7 @@ oninput="searchTown(this)" onclick="showSearchList(this)" onblur="onblurInputField(event, this)" - onFocus="this.select()" + onfocus="clearID(this)" autocomplete="off" type="text" minlength="3" @@ -159,7 +159,7 @@ onclick="showSearchList(this)" onblur="onblurInputField(event, this)" - onFocus="this.select()" + onfocus="clearID(this)" autocomplete="off" type="text" name="to_address_point_txt" diff --git a/templates/forms/f_find_route_form_main_find_routes.html b/templates/forms/f_find_route_form_main_find_routes.html index af988d8..25643dc 100644 --- a/templates/forms/f_find_route_form_main_find_routes.html +++ b/templates/forms/f_find_route_form_main_find_routes.html @@ -23,7 +23,7 @@ oninput="searchTown(this)" onclick="showSearchList(this)" onblur="onblurInputField(event, this)" - onFocus="this.select()" + onfocus="clearID(this)" autocomplete="off" type="text" minlength="3" @@ -62,7 +62,7 @@ onclick="showSearchList(this)" onblur="onblurInputField(event, this)" - onFocus="this.select()" + onfocus="clearID(this)" autocomplete="off" type="text" name="to_address_point_txt" diff --git a/templates/pages/p_article.html b/templates/pages/p_article.html index a863b07..b650eef 100644 --- a/templates/pages/p_article.html +++ b/templates/pages/p_article.html @@ -1,6 +1,9 @@ {% extends "tb_base.html" %} {% load i18n %} +{% load static %} + + {% block content %} @@ -24,6 +27,8 @@