This commit is contained in:
2023-08-07 15:09:14 +03:00
parent ddec69a7d6
commit 09cd04078c
3 changed files with 38 additions and 64 deletions

View File

@@ -228,6 +228,19 @@ function onblurInputField(event,el){
//
// }
function sliderInit() {
$('#id_weight').ionRangeSlider({
skin: "round",
type: "single",
min: 0,
max: 1000,
from: 0,
step: 1,
grid: true,
grid_num: 5,
});
}
function sendRoute(el, routeID = null){
event.preventDefault()
@@ -258,17 +271,10 @@ function sendRoute(el, routeID = null){
error: function (data, exception){
document.querySelector(".info_profile").innerHTML = data.responseJSON.html;
sliderInit();
$('#id_weight').ionRangeSlider({
skin: "round",
type: "single",
min: 0,
max: 1000,
step: 1,
grid: true,
grid_num: 5,
});
}
});
}
@@ -304,16 +310,7 @@ function OnSelectionChange(el) {
document.querySelector(".info_profile").innerHTML = data.html
//
$('#id_weight').ionRangeSlider({
skin: "round",
type: "single",
min: 0,
max: 1000,
from: 0,
step: 1,
grid: true,
grid_num: 5,
});
sliderInit();
}
});
@@ -339,19 +336,7 @@ function createRoute(){
// 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');
@@ -413,6 +398,9 @@ function getRoute(){
// location.href = '/profile'
document.querySelector(".info_profile").innerHTML = data.html;
sliderInit();
},
error: function (data, exception) {
@@ -428,3 +416,7 @@ function getRoute(){