# HG changeset patch # User veltr # Date 1353512781 -3600 # Node ID 3171f61c7be6a6adb064a56694eab22bc7411440 # Parent a29d4c54658c032f3d58ec3e6c4da829b6195fc9 Updated TMGraph diff -r a29d4c54658c -r 3171f61c7be6 src/hp/static/hp/tmgraph/event.pde --- a/src/hp/static/hp/tmgraph/event.pde Mon Nov 19 23:46:21 2012 +0100 +++ b/src/hp/static/hp/tmgraph/event.pde Wed Nov 21 16:46:21 2012 +0100 @@ -30,6 +30,9 @@ pressStartY = pointY; doSelectEdge(); doSelectNode(); + // ADDED BY IRI + if (javascript != null) javascript.click(selection); + // if (mouseButton == RIGHT) { if (selection != null && selected == null && !menu_active) doBeginMenu(); diff -r a29d4c54658c -r 3171f61c7be6 src/hp/static/hp/tmgraph/javascript.pde --- a/src/hp/static/hp/tmgraph/javascript.pde Mon Nov 19 23:46:21 2012 +0100 +++ b/src/hp/static/hp/tmgraph/javascript.pde Wed Nov 21 16:46:21 2012 +0100 @@ -17,6 +17,8 @@ void startexpand(); void endexpand(); void username(String uid); + void mousemove(sel); + void click(sel); } void bindJavascript(JavaScript js) { diff -r a29d4c54658c -r 3171f61c7be6 src/hp/static/hp/tmgraph/menu.pde --- a/src/hp/static/hp/tmgraph/menu.pde Mon Nov 19 23:46:21 2012 +0100 +++ b/src/hp/static/hp/tmgraph/menu.pde Wed Nov 21 16:46:21 2012 +0100 @@ -32,6 +32,9 @@ //selected = null; } } + //ADDED BY IRI + if (javascript != null) javascript.mousemove(selection); + // } void doSelectEdge() { diff -r a29d4c54658c -r 3171f61c7be6 src/hp/static/hp/tmgraph/model.pde --- a/src/hp/static/hp/tmgraph/model.pde Mon Nov 19 23:46:21 2012 +0100 +++ b/src/hp/static/hp/tmgraph/model.pde Wed Nov 21 16:46:21 2012 +0100 @@ -21,6 +21,8 @@ return edges; } +// END ADDITION + //////// SAVE & LOAD NODES, EDGED //////////////////////////////////////////// void allSave() { String proj, asc_id, a_proj, id, from_proj, name, grp, to_id, to_proj, r_name, r_from, r_to; diff -r a29d4c54658c -r 3171f61c7be6 src/hp/templates/hp/all_videos.html --- a/src/hp/templates/hp/all_videos.html Mon Nov 19 23:46:21 2012 +0100 +++ b/src/hp/templates/hp/all_videos.html Wed Nov 21 16:46:21 2012 +0100 @@ -45,7 +45,7 @@