projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
20ecc5d
)
stat event-queueing is per-team.
author
Mike Taylor
<mike@indexdata.com>
Tue, 4 Mar 2014 16:48:16 +0000
(16:48 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 4 Mar 2014 16:48:16 +0000
(16:48 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
039ca55
..
ee05520
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-221,7
+221,7
@@
function widget($, team, type, node) {
function promoteStat() {
function promoteStat() {
- mkws.queue("stat").subscribe(function(data) {
+ mkws.queue("stat." + team.name()).subscribe(function(data) {
if (node.length === 0) alert("huh?!");
$(node).html('<span class="head">' + M('Status info') + '</span>' +
if (node.length === 0) alert("huh?!");
$(node).html('<span class="head">' + M('Status info') + '</span>' +
@@
-313,7
+313,7
@@
function team($, teamName) {
function onStat(data) {
debug("stat");
function onStat(data) {
debug("stat");
- mkws.queue("stat").publish(data);
+ mkws.queue("stat." + m_teamName).publish(data);
}
}