changeset 42:238cc49e07ef draft

bug
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Sat, 23 Mar 2013 19:28:14 +0900
parents d75a3fdcbfdd
children 18c344a8d9ca
files show.html
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/show.html	Sat Mar 23 19:01:44 2013 +0900
+++ b/show.html	Sat Mar 23 19:28:14 2013 +0900
@@ -297,7 +297,7 @@
 };
 
 function appendStateSelectDiv(body, div, state) {
-	div.click(function(){if (!CURRENT_DATA.nodeId) { alert("please click any node.");return; } stateTraversePost(state); });
+	div.click(function(){if (!CURRENT_DATA.nodeId) { alert("please click any node.");return; } stateTraversePost(state);  });
 	div.hover(
 	    function(){div.css("box-shadow","black 0 0 50px");  },
 	    function(){div.css("box-shadow","");}
@@ -571,7 +571,7 @@
 }
 
 function returnTraverseMenuFunction(state) {
-    return function(){stateTraversePost(state);};
+    return function(f){stateTraversePost(state);  };
 }
 
 function createTraverseMenuAndObj(edgeInfoArray) {
@@ -622,11 +622,11 @@
     var div = node.view;
     setInitContextMenu(node,div);
     div.hover(  
-	function(){div.css("box-shadow","white 0 0 50px"); console.log('hover'); updateContextMenu(div); },
+	function(){CURRENT_DATA.nodeId = node.property.id; div.css("box-shadow","white 0 0 50px"); console.log('hover'); updateContextMenu(div); },
 	function(){div.css("box-shadow","");}
     );
     node.view[0].nodeId = node.property.id;
-    div.click(function(){ showMiniDisplay(node); showSelectMenu(node);});
+    div.click(function(){ showMiniDisplay(node); showSelectMenu(node);  });
     DragHandler.attach($(node.view)[0]);
     div.css('border-style',borderStyle[node.property.kind]);
     div.css("background", StateColor[node.property.state]||"white");