diff --git a/static/js/autocomlitev2.js b/static/js/autocomlite.js similarity index 99% rename from static/js/autocomlitev2.js rename to static/js/autocomlite.js index 9c2371a..fef9aaf 100644 --- a/static/js/autocomlitev2.js +++ b/static/js/autocomlite.js @@ -27,6 +27,7 @@ function searchTown(el){ return insertSearchList(data, el.name + '_list') }, error: function (data){ + console.log('Error') } diff --git a/static/js/newRoute.js b/static/js/newRoute.js index 017e6f0..4bb17dc 100644 --- a/static/js/newRoute.js +++ b/static/js/newRoute.js @@ -21,7 +21,7 @@ function createRoute(){ type: "single", min: 0, max: 1000, - from: 500, + from: 100, step: 1, grid: true, grid_num: 5, diff --git a/static/js/sendRoute.js b/static/js/sendRoute.js index a56849f..d89d00d 100644 --- a/static/js/sendRoute.js +++ b/static/js/sendRoute.js @@ -18,16 +18,18 @@ function sendRoute(el){ // location.href = '/profile' document.querySelector(".info_profile").innerHTML = data.html + }, error: function (data, exception){ - document.querySelector(".info_profile").innerHTML = data.responseJSON.html + document.querySelector(".info_profile").innerHTML = data.responseJSON.html; + + $('#id_weight').ionRangeSlider({ skin: "round", type: "single", min: 0, max: 1000, - from: 500, step: 1, grid: true, grid_num: 5, diff --git a/templates/blocks/profile/b_new_route.html b/templates/blocks/profile/b_new_route.html index 96efa8f..13f10db 100644 --- a/templates/blocks/profile/b_new_route.html +++ b/templates/blocks/profile/b_new_route.html @@ -9,31 +9,50 @@