comments
This commit is contained in:
parent
e0e505de1d
commit
49d761c81c
1 changed files with 10 additions and 4 deletions
|
@ -29,16 +29,21 @@ function selectEdgeOnClickHandler(adj, e) {
|
||||||
}//selectEdgeOnClickHandler
|
}//selectEdgeOnClickHandler
|
||||||
|
|
||||||
function nodeDoubleClickHandler(node, e) {
|
function nodeDoubleClickHandler(node, e) {
|
||||||
if (node.getData('inCommons') == false) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (userid == null) {
|
if (userid == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (node.getData('inCommons') == false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//this line adds it to the console if you close seek
|
||||||
node.setData('inCommons', false);
|
node.setData('inCommons', false);
|
||||||
|
|
||||||
|
//this is just aesthetic
|
||||||
deselectNode(node);
|
deselectNode(node);
|
||||||
|
|
||||||
|
//this adds the node to the map, if it's a map
|
||||||
if (window.mapid) {
|
if (window.mapid) {
|
||||||
$.post('/mappings',
|
$.post('/mappings',
|
||||||
{
|
{
|
||||||
|
@ -52,6 +57,7 @@ function nodeDoubleClickHandler(node, e) {
|
||||||
node.setData('mappingid', data.id);
|
node.setData('mappingid', data.id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}//doubleClickNodeHandler
|
}//doubleClickNodeHandler
|
||||||
|
|
||||||
function nodeWasDoubleClicked() {
|
function nodeWasDoubleClicked() {
|
||||||
|
|
Loading…
Reference in a new issue