summaryrefslogtreecommitdiff
path: root/scripts/rhizicore.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rhizicore.js')
-rw-r--r--scripts/rhizicore.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index a8b091cc..a1eba12e 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -445,7 +445,8 @@ function myGraph(el) {
.attr("height", '100%')
.attr("pointer-events", "all")
.call(zoomObject)
- .append("g");
+ .append("g")
+ .attr("class", "zoom");
// TODO: why do we need this huge overlay (hugeness also not constant)
vis.append("rect")
@@ -569,7 +570,7 @@ function myGraph(el) {
function set_user(user) {
this.user = user;
- this.history = new History(this.user, $('svg'));
+ this.history = new History(this.user, $('svg g.zoom')[0]);
console.log('new user: ' + user);
}
this.set_user = set_user;