added pointer to node hover, fixed synapse permission edit bug

This commit is contained in:
Connor Turland 2014-03-02 11:53:22 -08:00
parent 2abeb73e9a
commit 2249fc4893
3 changed files with 6 additions and 3 deletions

View file

@ -494,7 +494,10 @@ function onMouseMoveHandler(node, eventInfo, e) {
if (MetamapsModel.edgeHoveringOver) { if (MetamapsModel.edgeHoveringOver) {
onMouseLeave(MetamapsModel.edgeHoveringOver); onMouseLeave(MetamapsModel.edgeHoveringOver);
} }
$('canvas').css('cursor', 'pointer');
return; return;
} else {
$('canvas').css('cursor', 'default');
} }
if (edge == false && MetamapsModel.edgeHoveringOver != false) { if (edge == false && MetamapsModel.edgeHoveringOver != false) {

View file

@ -279,7 +279,7 @@ function populateShowCard(node) {
s.height( s.height() ).mCustomScrollbar('update'); s.height( s.height() ).mCustomScrollbar('update');
var name = $(this).html(); var name = $(this).html();
node.name = name; node.name = decodeEntities(name);
Mconsole.plot(); Mconsole.plot();
}); });

View file

@ -33,7 +33,7 @@ if ( Mconsole != null) {
showDesc: true, //will be changed by selectEdge showDesc: true, //will be changed by selectEdge
category: '<%= @synapse.category %>', category: '<%= @synapse.category %>',
id: '<%= @synapse.id %>', id: '<%= @synapse.id %>',
userid: '<%= @synapse.user.id %>', userid: <%= @synapse.user.id %>,
username: '<%= @synapse.user.name %>', username: '<%= @synapse.user.name %>',
permission: '<%= @synapse.permission %>' permission: '<%= @synapse.permission %>'
}); });