diff --git a/static/v2/js/blocks/b_search_routes.js b/static/v2/js/blocks/b_search_routes.js new file mode 100644 index 0000000..f17586a --- /dev/null +++ b/static/v2/js/blocks/b_search_routes.js @@ -0,0 +1,17 @@ +function searchRoutes (form) { + event.preventDefault() + + let formData = getFormData(form); + formData.append('owner_type', 'mover'); + + let request = new api({ + url: '/routes/find_routes/', + data: formData, + data_type: 'formData', + success: function (res) { + + } + }) + + request.ajaxRequest() +} \ No newline at end of file diff --git a/templates/v2/blocks/b_search_routes.html b/templates/v2/blocks/b_search_routes.html index 96dfadc..ecf5d94 100644 --- a/templates/v2/blocks/b_search_routes.html +++ b/templates/v2/blocks/b_search_routes.html @@ -3,7 +3,7 @@