that.log = log;
- log("start running MKWS");
+ log("making new widget team");
m_sortOrder = m_config.sort_default;
m_perpage = m_config.perpage_default;
- log("Create main pz2 object");
// create a parameters array and pass it to the pz2's constructor
// then register the form submit event with the pz2.search function
// autoInit is set to true on default
"showtime": 500, //each timer (show, stat, term, bytarget) can be specified this way
"termlist": m_config.facets.join(',')
});
+ log("created main pz2 object");
// pz2.js event handlers:
function onInit() {
}
function onBytarget(data) {
- log("target");
+ log("bytarget");
queue("targets").publish(data);
}
that.addWidget = function(w) {
if (m_widgets[w.type] === undefined) {
m_widgets[w.type] = [ w ];
- log("Added '" + w.type + "' widget to team '" + m_teamName + "'");
} else {
m_widgets[w.type].push(w);
- log("Added '" + w.type + "' widget #" + m_widgets[w.type].length + "' to team '" + m_teamName + "'");
}
}