From: Mike Taylor Date: Fri, 6 Dec 2013 17:56:44 +0000 (+0000) Subject: Clearer logging for run_auto_searches() X-Git-Tag: 0.9.1~122 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=11bcb1abd023be87665c4c63c2dc319460306b6a;p=mkws-moved-to-github.git Clearer logging for run_auto_searches() --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 35b51b7..c0171d9 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -923,8 +923,12 @@ function run_auto_searches() { if (node.attr('autosearch')) { var query = node.attr('autosearch'); var sort = node.attr('sort'); - debug("running auto search: '" + query + "' sorted by '" + sort + "'"); - newSearch(query, sort); + var targets = node.attr('targets'); + var s = "running auto search: '" + query + "'"; + if (sort) s += " sorted by '" + sort + "'"; + if (targets) s += " in targets '" + targets + "'"; + debug(s); + newSearch(query, sort, targets); } }