diff --git a/public_html/static/js/jquery-autocomplete.js b/public_html/static/js/jquery-autocomplete.js index ae004f4..264259b 100644 --- a/public_html/static/js/jquery-autocomplete.js +++ b/public_html/static/js/jquery-autocomplete.js @@ -251,7 +251,7 @@ AutoCompleterInstance.prototype.show = function() { this.on("input.autocomplete_hook", function(){ if(!$(this).data("attached-autocomplete")) { - var instance = autocompleter.spawn(source); + var instance = autocompleter.spawn(new source($(this))); instance.callback = callback; instance.attachBelow($(this)); instance.hookKeyEvents($(this)); diff --git a/public_html/static/js/openng.js b/public_html/static/js/openng.js index 045fbb4..46db71f 100644 --- a/public_html/static/js/openng.js +++ b/public_html/static/js/openng.js @@ -289,7 +289,7 @@ $(function(){ autocompleter_search = new AutoCompleter("search"); - $("#input_search_query").autoComplete(autocompleter_search, new SearchCompletionSource($("#input_search_query")), function(data){ + $("#input_search_query").autoComplete(autocompleter_search, SearchCompletionSource, function(data){ openWindowNodeDetails(data.value); this.target.val(""); });