});
}
+$(".planet-search-autocomplete").typeahead({
+ source: function(query, process) {
+ $.get("http://planet.ipfire.org/api/search/autocomplete", { q: query }, function(data) {
+ if (data.query == query) {
+ process(data.results);
+ }
+ });
+ },
+});
+
+
function getCookie(name) {
var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
return r ? r[1] : undefined;