for (var name in this.config) {
if (this.config.hasOwnProperty(name)) {
attrs[name] = this.config[name];
for (var name in this.config) {
if (this.config.hasOwnProperty(name)) {
attrs[name] = this.config[name];
- s.push('<div class="mkws', type, ' mkwsTeam_', attrs._team, '"');
+ s.push('<div class="mkws', type, ' mkws-team-', attrs._team, '"');
for (var name in attrs) {
if (name !== '_team')
s.push(' ', name, '="', attrs[name], '"');
for (var name in attrs) {
if (name !== '_team')
s.push(' ', name, '="', attrs[name], '"');
if (val.match(/^!param!/)) {
var param = val.replace(/^!param!/, '');
val = mkws.getParameterByName(param);
if (val.match(/^!param!/)) {
var param = val.replace(/^!param!/, '');
val = mkws.getParameterByName(param);
var index = val.replace(/^!path!/, '');
var path = window.location.pathname.split('/');
val = path[path.length - index];
var index = val.replace(/^!path!/, '');
var path = window.location.pathname.split('/');
val = path[path.length - index];
if (!val) {
alert("This page has a MasterKey widget that needs a val specified by the path-component " + index);
}
} else if (val.match(/^!var!/)) {
var name = val.replace(/^!var!/, '');
val = window[name]; // It's ridiculous that this works
if (!val) {
alert("This page has a MasterKey widget that needs a val specified by the path-component " + index);
}
} else if (val.match(/^!var!/)) {
var name = val.replace(/^!var!/, '');
val = window[name]; // It's ridiculous that this works
// Stash this for subsequent inspection
this.team.config.query = query;
} else if (old === query) {
// Stash this for subsequent inspection
this.team.config.query = query;
} else if (old === query) {
if (limit) s += " limited by '" + limit + "'";
if (targets) s += " in targets '" + targets + "'";
if (targetfilter) s += " constrained by targetfilter '" + targetfilter + "'";
if (limit) s += " limited by '" + limit + "'";
if (targets) s += " in targets '" + targets + "'";
if (targetfilter) s += " constrained by targetfilter '" + targetfilter + "'";
that.team.newSearch(query, sortOrder, maxrecs, perpage, limit, targets, targetfilter);
});
that.team.newSearch(query, sortOrder, maxrecs, perpage, limit, targets, targetfilter);
});
var val = expandValue(a.value);
if (a.name === 'data-mkws-config') {
// Treat as a JSON fragment configuring just this widget
var val = expandValue(a.value);
if (a.name === 'data-mkws-config') {
// Treat as a JSON fragment configuring just this widget
} else if (a.name.match (/^data-mkws-/)) {
var name = a.name.replace(/^data-mkws-/, '')
that.config[name] = val;
} else if (a.name.match (/^data-mkws-/)) {
var name = a.name.replace(/^data-mkws-/, '')
that.config[name] = val;
- log("made " + type + " widget(node=" + node + ")");
- } else if (type.match(/-Container-(narrow|wide)$/)) {
+ this.info("made " + type + " widget(node=" + node + ")");
+ } else if (type.match(/-[Cc]ontainer-(narrow|wide)$/)) {