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];
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;
} else if (type.match(/-Container-(narrow|wide)$/)) {
// Not really a widget: no need to log its lack of promotion
} else {
} else if (type.match(/-Container-(narrow|wide)$/)) {
// Not really a widget: no need to log its lack of promotion
} else {