From 11bcb1abd023be87665c4c63c2dc319460306b6a Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 6 Dec 2013 17:56:44 +0000 Subject: [PATCH] Clearer logging for run_auto_searches() --- tools/htdocs/mkws.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); } } -- 1.7.10.4