diff --git a/web/src/js/osselector.js b/web/src/js/osselector.js index b7a4a84a78f4cf9b960d08b92713002d1bc668fd..8db6cb27c0e689aef7cf01a18bb2035cfab448eb 100644 --- a/web/src/js/osselector.js +++ b/web/src/js/osselector.js @@ -1,3 +1,7 @@ +// 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'); }; diff --git a/web/src/js/sitesearch.js b/web/src/js/sitesearch.js index 28554990178c0c48b160405624d248f85d413c13..abd4a186ed1a44de7ec3542395a4c6eb329a2974 100644 --- a/web/src/js/sitesearch.js +++ b/web/src/js/sitesearch.js @@ -1,3 +1,6 @@ +// 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(); });