added permission to synapse dataset in js in two spots: creating new edge, grabbing edge from commons

This commit is contained in:
Devin Howard 2013-02-28 21:45:42 -05:00
parent 02cff2e138
commit 8f59fc34d1
2 changed files with 5 additions and 3 deletions

View file

@ -82,8 +82,9 @@ var even = true;
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 %>'
});
temp.data.$direction = d; temp.data.$direction = d;
Mconsole.fx.plotLine(temp, Mconsole.canvas); Mconsole.fx.plotLine(temp, Mconsole.canvas);
} }

View file

@ -28,7 +28,8 @@ if ( Mconsole != null) {
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 %>'
}); });
temp.data.$direction = d; temp.data.$direction = d;
Mconsole.fx.plotLine(temp, Mconsole.canvas); Mconsole.fx.plotLine(temp, Mconsole.canvas);