projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add nasty hack in auto-executing widgets. Sets torusquery if target is
[mkws-moved-to-github.git]
/
src
/
mkws-widget.js
diff --git
a/src/mkws-widget.js
b/src/mkws-widget.js
index
566f604
..
45b0b40
100644
(file)
--- a/
src/mkws-widget.js
+++ b/
src/mkws-widget.js
@@
-114,7
+114,10
@@
mkws.makeWidget = function($, team, type, node) {
// them in in the subclass, as widget.autosearch is called in
// the superclass, before the subclass fiddles with the
// configuration.
// them in in the subclass, as widget.autosearch is called in
// the superclass, before the subclass fiddles with the
// configuration.
- that.team.newSearch(that, query);
+ var torusquery = undefined;
+ var target = that.config.target;
+ if (target) torusquery = 'udb=="' + target + '"';
+ that.team.newSearch(that, query, undefined, undefined, undefined, undefined, undefined, torusquery);
});
}
};
});
}
};