-function _mkws($) {
- // if (console && console.log) console.log("run _mkws()");
+function _make_mkws_team($, teamName) {
+ if (console && console.log)
+ console.log("run _make_mkws_team(" + (teamName ? teamName : "") + ")");
-mkws.sort = mkws_config.sort_default;
-debug("copied mkws_config.sort_default '" + mkws_config.sort_default + "' to mkws.sort");
+m_sort = mkws_config.sort_default;
+debug("copied mkws_config.sort_default '" + mkws_config.sort_default + "' to m_sort");
redraw_navi(); // ### should use windowid
resetPage(); // ### the globals it resents should be indexed by windowid
loadSelect(); // ### should use windowid
redraw_navi(); // ### should use windowid
resetPage(); // ### the globals it resents should be indexed by windowid
loadSelect(); // ### should use windowid
- debug("triggerSearch(" + mkws.query + "): filters = " + $.toJSON(mkws.filters) + ", pp2filter = " + pp2filter + ", params = " + $.toJSON(params));
+ debug("triggerSearch(" + mkws.query + "): filters = " + $.toJSON(m_filters) + ", pp2filter = " + pp2filter + ", params = " + $.toJSON(params));
- my_paz.search(mkws.query, recPerPage, mkws.sort, pp2filter, undefined, params);
+ my_paz.search(mkws.query, recPerPage, m_sort, pp2filter, undefined, params);
mkws.limitQuery = function (field, value)
{
debug("limitQuery(field=" + field + ", value=" + value + ")");
mkws.limitQuery = function (field, value)
{
debug("limitQuery(field=" + field + ", value=" + value + ")");
mkws.limitTarget = function (id, name)
{
debug("limitTarget(id=" + id + ", name=" + name + ")");
mkws.limitTarget = function (id, name)
{
debug("limitTarget(id=" + id + ", name=" + name + ")");
if (filter.id) {
text += 'Source: <a class="crossout" href="#" onclick="mkws.delimitTarget(' +
"'" + filter.id + "'" + ');return false;">' + filter.name + '</a>';
if (filter.id) {
text += 'Source: <a class="crossout" href="#" onclick="mkws.delimitTarget(' +
"'" + filter.id + "'" + ');return false;">' + filter.name + '</a>';
var sort_html = '<select name="mkwsSort" id="mkwsSort">';
for(var i = 0; i < mkws_config.sort_options.length; i++) {
var sort_html = '<select name="mkwsSort" id="mkwsSort">';
for(var i = 0; i < mkws_config.sort_options.length; i++) {
(function (j) {
// enable before page load, so we could call it before mkws() runs
_mkws_jquery_plugin(j);
$(document).ready(function() {
// if (console && console.log) console.log("on load ready");
(function (j) {
// enable before page load, so we could call it before mkws() runs
_mkws_jquery_plugin(j);
$(document).ready(function() {
// if (console && console.log) console.log("on load ready");