Skip to content
Snippets Groups Projects
Select Git revision
  • 3b8765b345759a1ad8969c6eb29f7a1ff58ec4f9
  • master default protected
  • dev
  • ckan-2.9
  • refactor-css
  • improve-accessibility
  • fix-get_action-calls
  • summary-collection
  • debug-collections
  • debug-eakte
  • experimental-linked-resources-as-uploads
  • button-text-detail
  • Detailinfo
  • hash
  • URL_Upload
  • URL_Upload_working_BB
  • url_exp
  • ODPSH-550
  • href-for-preview
  • ODPSH-HASH-ALGO
  • Algo
  • v1.61
  • v1.6
  • v1.51
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • v0.1
  • sprint-18
  • sprint11_2
  • sprint10
  • sprint8
  • sprint7
  • sprint6
37 results

autocomplete.js

Blame
  • autocomplete.js 507 B
    'use strict';
    
    $(function () {
    
      // Activate search suggestions for the search bar in the header and for the
      // search bar used in the body.
    
    
    })
      $('.site-search input, .search').autocomplete({
        delay: 500,
        html: true,
        minLength: 2,
        source: function (request, response) {
          var url = ckan.SITE_ROOT + '/api/3/action/autocomplete';
          $.getJSON(url, {q: request.term})
            .done(function (data) {
              console.log(data);
              response(data);
            });
          }
      });