diff --git a/styles/bootstrap/application.js b/styles/bootstrap/application.js index 56caad400..1e8b7ae84 100644 --- a/styles/bootstrap/application.js +++ b/styles/bootstrap/application.js @@ -100,7 +100,13 @@ $(document).ready( function() { $("#searchfield").typeahead({ /* {{{ */ minLength: 3, source: function(query, process) { + var d = new Date(); + var pastYear = d.getFullYear() - 1; + d.setFullYear(pastYear); + console.log(d.toISOString().split('T')[0]); + $.get('../restapi/index.php/search', { query: query, limit: 8, mode: 'typeahead' }, function(data) { +// $.get('../out/out.Search.php', { query: query, limit: 8, creationdate: 1, createstart: d.toISOString().split('T')[0], action: 'typeahead' }, function(data) { process(data); }); },