summaryrefslogtreecommitdiff
path: root/public/js/mv
diff options
context:
space:
mode:
authorFreeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace>2013-05-16 15:33:58 +1200
committerFreeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace>2013-05-16 15:33:58 +1200
commit6112e15195fd896d781bfe987285a7ed192cf1be (patch)
treee5dbd27caa189de97dcd32e6f05ff6be4cf7d014 /public/js/mv
parent1b40628fc600acb4035b3374c27fe392f772a801 (diff)
downloadmanavis-6112e15195fd896d781bfe987285a7ed192cf1be.tar.gz
manavis-6112e15195fd896d781bfe987285a7ed192cf1be.tar.bz2
manavis-6112e15195fd896d781bfe987285a7ed192cf1be.tar.xz
manavis-6112e15195fd896d781bfe987285a7ed192cf1be.zip
Always update join channel link
This should all be done by delta updates. d3 joins, while fun, aren't really the tool for the job here. :)
Diffstat (limited to 'public/js/mv')
-rw-r--r--public/js/mv/connect.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/public/js/mv/connect.js b/public/js/mv/connect.js
index 39b2f55..0d0231d 100644
--- a/public/js/mv/connect.js
+++ b/public/js/mv/connect.js
@@ -221,7 +221,6 @@ var mv = function(mv) {
if (join.empty()) {
join = group.append("a")
.attr("class", "join")
- .attr("href", "javascript:mv.connect.join(" + channelNames[i] + ");")
.text("Join channel")
;
}
@@ -229,7 +228,10 @@ var mv = function(mv) {
/* We're in this channel */
join.style("display", "none");
} else {
- join.style("display", "inline");
+ join
+ .style("display", "inline")
+ .attr("href", "javascript:mv.connect.join(" + channelNames[i] + ");")
+ ;
}
} else {
var join = group.select(".join");