1.1.8 upd raise and highlight function in my_routes

This commit is contained in:
2024-06-10 17:48:10 +03:00
parent 1aced3d20b
commit 7aa7e32fda
4 changed files with 17 additions and 2 deletions

View File

@@ -756,6 +756,19 @@ button#send_upgrade:hover {
color: #ff0000;
}
.info_text_wrapper{
padding-top: 20px;
text-align: center;
color: red;
}
.info_text{
display: none;
}
.info_text.show{
display: block;
}
.header-second-item,

View File

@@ -675,7 +675,7 @@ function confirmUpgrade(el, routeID){
let editButton = document.getElementById('edit_route_' + routeID)
if(url === '/routes/highlight_route/'){
if(url === '/routes/highlight_route/' && !remainsHighlightCount[0].innerText === '0'){
el_route.classList.add('highlight-color');
editButton.classList.add('highlight-color')
document.getElementById('control_frame_' + routeID).classList.remove('show')

View File

@@ -118,6 +118,8 @@ function select_tab_profile (el,url,owner_type=null, check_orders_required) {
});
}
function checkStatesAfterTransitionToAnotherTabProfile () {
// check which page if profile - do
if (window.location.href.includes('profile')){