0.0.58 upd route_info
This commit is contained in:
@@ -84,3 +84,12 @@ function onblurInputField(event,el){
|
||||
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
// function hideErrorMsg(el) {
|
||||
// let hide_element = document.querySelector()
|
||||
// if(el.value !== 0){
|
||||
// hide_element.classList.add('hide')
|
||||
// }
|
||||
//
|
||||
// }
|
||||
@@ -69,4 +69,5 @@ function getRoute(){
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -62,35 +62,24 @@ function OnSelectionChange(el) {
|
||||
// location.href = '/profile'
|
||||
document.querySelector(".info_profile").innerHTML = data.html
|
||||
//
|
||||
// $(document).ready(function (e){
|
||||
// $('#id_weight').ionRangeSlider({
|
||||
// skin: "round",
|
||||
// type: "single",
|
||||
// min: 0,
|
||||
// max: 1000,
|
||||
// from: 100,
|
||||
// step: 1,
|
||||
// grid: true,
|
||||
// grid_num: 5,
|
||||
// }
|
||||
|
||||
//get dynamic value
|
||||
// let fromCountry = document.getElementById('id_from_country');
|
||||
// let toCounytry = document.getElementById('id_to_country')
|
||||
//
|
||||
// toCounytry.oninput = function (){
|
||||
// console.log(toCounytry.value)
|
||||
// }
|
||||
// fromCountry.oninput = function (){
|
||||
// console.log(fromCountry.value)
|
||||
//
|
||||
// };
|
||||
$('#id_weight').ionRangeSlider({
|
||||
skin: "round",
|
||||
type: "single",
|
||||
min: 0,
|
||||
max: 1000,
|
||||
from: 0,
|
||||
step: 1,
|
||||
grid: true,
|
||||
grid_num: 5,
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -92,4 +92,20 @@ function myProfile(){
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function confirmRemove(el) {
|
||||
let place = document.querySelector('.button_remove_route')
|
||||
// let new_button = document.querySelector('.cancel_remove')
|
||||
// if(!button){
|
||||
let cancel_button = document.createElement('button')
|
||||
cancel_button.className = "cancel_remove";
|
||||
cancel_button.innerText = "Отменить удаление";
|
||||
place.appendChild(cancel_button);
|
||||
// }
|
||||
|
||||
|
||||
el.classList.add('confirm_remove')
|
||||
el.innerText = 'Подтвердить удаление'
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user