Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

api will close pages

  • Loading branch information...
commit 2c28921c57544d0e790ef9b213dc667053930d77 1 parent f8eb127
@WardCunningham authored
View
3  client/plugins/force/force.coffee
@@ -75,8 +75,7 @@ window.plugins.force =
.attr("r", 5)
.style("fill", (d) -> fill d.group)
.on("dblclick", (d) ->
- $(div).parents('.page').nextAll().remove()
- wiki.doInternalLink "#{d.name} Box")
+ wiki.doInternalLink "#{d.name} Box", div.parents('.page'))
.call(force.drag)
node.append("svg:title").text((d, i) -> d.name)
View
3  client/plugins/force/force.js
@@ -35,8 +35,7 @@
}).attr("r", 5).style("fill", function(d) {
return fill(d.group);
}).on("dblclick", function(d) {
- $(div).parents('.page').nextAll().remove();
- return wiki.doInternalLink("" + d.name + " Box");
+ return wiki.doInternalLink("" + d.name + " Box", div.parents('.page'));
}).call(force.drag);
node.append("svg:title").text(function(d, i) {
return d.name;
View
3  client/plugins/scatter/scatter.coffee
@@ -88,7 +88,6 @@ window.plugins.scatter =
.style("cursor", 'pointer')
.attr("r", 10)
.on("click", (d) ->
- $(div).parents('.page').nextAll().remove()
- wiki.doInternalLink(d.Material))
+ wiki.doInternalLink(d.Material, div.parents '.page'))
.append("svg:title").text title
View
3  client/plugins/scatter/scatter.js
@@ -84,8 +84,7 @@
}).style("fill", function(d, i) {
return fill(d.Cluster || d.Material.split(/\s+/).reverse()[0]);
}).style("cursor", 'pointer').attr("r", 10).on("click", function(d) {
- $(div).parents('.page').nextAll().remove();
- return wiki.doInternalLink(d.Material);
+ return wiki.doInternalLink(d.Material, div.parents('.page'));
}).append("svg:title").text(title);
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.