in laravel this search engine that I did recharges the page and does not search me

0

@section('after-scripts')
  <link rel="stylesheet" type="text/css" href="{{ URL::to('css/backend/plugin/jquery-ui.min.css') }}">
  <script type="text/javascript" src="{{ URL::to('js/backend/plugin/jquery-ui.min.js') }}"></script>
  <script>
    $(document).ready(function(){ 
      $('#search').autocomplete({
        minLength: 4,
        source:function (query, process) {
          return $.ajax({
            type: "POST",
            url: '{{route('admin.talleres.buscar_ta')}}',
            data: { query: query },

            success:function (data) {
            
              console.log(data);   
             return process(data);
            }
          });
        },
       select: function (event, ui) {
          window.location ="/admin/talleres/asistencia/"+ui.item.id;
        }
      });     
    });
  </script>
@endsection 
    
asked by Alexander aguilar 23.07.2018 в 19:21
source

0 answers