that.resetPage = resetPage;
- function newSearch(query, sortOrder, maxrecs, perpage, limit, targets, torusquery) {
+ function newSearch(widget, query, sortOrder, maxrecs, perpage, limit, targets, torusquery) {
that.info("newSearch: " + query);
if (config.use_service_proxy && !mkws.authenticated) {
var team = this.team;
this.node.submit(function() {
var val = team.widget('query').value();
- team.newSearch(val);
+ team.newSearch(this, val);
return false;
});
});
if (targetfilter) s += " constrained by targetfilter '" + targetfilter + "'";
that.info(s);
- that.team.newSearch(query, sortOrder, maxrecs, perpage, limit, targets, targetfilter);
+ that.team.newSearch(that, query, sortOrder, maxrecs, perpage, limit, targets, targetfilter);
});
}
};