projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e8e7bac
)
Clearer logging for run_auto_searches()
author
Mike Taylor
<mike@indexdata.com>
Fri, 6 Dec 2013 17:56:44 +0000
(17:56 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Fri, 6 Dec 2013 17:56:44 +0000
(17:56 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
35b51b7
..
c0171d9
100644
(file)
--- 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');
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);
}
}
}
}