Skip to content
Snippets Groups Projects
Commit bf2f3038 authored by Lars Bilke's avatar Lars Bilke
Browse files

[web] Added copyright and license info to JavaScript.

parent 8e156555
No related branches found
No related tags found
No related merge requests found
// Copyright (c) 2012-2018, OpenGeoSys Community (http://www.opengeosys.org)
// Distributed under a Modified BSD License.
// See accompanying file LICENSE.txt or
// http://www.opengeosys.org/project/license
jQuery.fn.visible = function() {
return this.css('visibility', 'visible');
};
......
// Roughly based on https://github.com/algolia/autocomplete.js#jquery
// https://github.com/algolia/autocomplete.js/blob/master/LICENSE
import algoliasearch from 'algoliasearch/lite';
var autocomplete = require('autocomplete.js/dist/autocomplete.jquery.js')
......@@ -18,6 +21,5 @@ $('#search-input').autocomplete({
}
}
]).on('autocomplete:selected', function(event, suggestion, dataset) {
// console.log(suggestion, dataset);
window.location = "/" + suggestion.uri.toLowerCase();
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment