}
- // ### doesn't need windowid
- function newSearch(query, sort, targets, windowid)
+ function newSearch(query, sort, targets)
{
debug("newSearch: " + query);
redraw_navi();
resetPage();
loadSelect();
- triggerSearch(query, sort, targets, windowid);
+ triggerSearch(query, sort, targets);
switchView('records'); // In case it's configured to start off as hidden
m_submitted = true;
}
}
- // ### doesn't need windowid
- function triggerSearch (query, sort, targets, windowid)
+ function triggerSearch (query, sort, targets)
{
var pp2filter = "";
var pp2limit = "";
if (pp2limit) {
params.limit = pp2limit;
}
- if (windowid) {
- params.windowid = windowid;
- }
+
debug("triggerSearch(" + m_query + "): filters = " + $.toJSON(m_filters) + ", pp2filter = " + pp2filter + ", params = " + $.toJSON(params));
// We can use: params.torusquery = "udb=NAME"
if (targets) s += " in targets '" + targets + "'";
debug(s);
- newSearch(query, sort, targets, m_teamName);
+ newSearch(query, sort, targets);
}