log_level: 1, // Will be overridden from mkws_config, but
// initial value allows jQuery popup to use logging.
teams: {},
+ widgetType2function: {},
+
locale_lang: {
"de": {
"Authors": "Autoren",
mkws.log = log;
+ mkws.registerWidgetType = function(name, fn) {
+ mkws.widgetType2function[name] = fn;
+ log("registered widget-type '" + name + "'");
+ }
+
+ mkws.promotionFunction = function(name) {
+ return mkws.widgetType2function[name];
+ }
+
+
function handleNodeWithTeam(node, callback) {
// First branch for DOM objects; second branch for jQuery objects
var classes = node.className || node.attr('class');
// The following functions are dispatchers for team methods that
- // are called from the UI using a te3am-name rather than implicit
- // context.
+ // are called from the UI using a team-name rather than implicit
+ // context. Apart from mkws.log, they are the ONLY public UI to
+ // this module.
mkws.switchView = function(tname, view) {
mkws.teams[tname].switchView(view);
}
}
var status = $(data).find("status");
if (status.text() != "OK") {
- alert("service proxy auth repsonse status: " + status.text() + ", give up!");
+ alert("service proxy auth response status: " + status.text() + ", give up!");
return;
}
$(document).ready(function() {
- log("on load ready");
defaultMkwsConfig();
if (mkws_config.query_width < 5 || mkws_config.query_width > 150) {