temporarily showing userid and synapse id on synapses, so that I can try editing them on the staging server
This commit is contained in:
parent
3a96fdeac3
commit
08c7c3b517
5 changed files with 6 additions and 2 deletions
|
@ -91,7 +91,7 @@ function initFD(){
|
||||||
}
|
}
|
||||||
|
|
||||||
//check for edge label in data
|
//check for edge label in data
|
||||||
var desc = adj.getData("desc");
|
var desc = adj.getData("desc") + ' (' + adj.getData("userid") + ',' + adj.getData("id") + ')';
|
||||||
var showDesc = adj.getData("showDesc");
|
var showDesc = adj.getData("showDesc");
|
||||||
if( desc != "" && showDesc ) {
|
if( desc != "" && showDesc ) {
|
||||||
//now adjust the label placement
|
//now adjust the label placement
|
||||||
|
|
|
@ -91,7 +91,7 @@ function initRG(){
|
||||||
}
|
}
|
||||||
|
|
||||||
//check for edge label in data
|
//check for edge label in data
|
||||||
var desc = adj.getData("desc");
|
var desc = adj.getData("desc") + ' (' + adj.getData("userid") + ',' + adj.getData("id") + ')';
|
||||||
var showDesc = adj.getData("showDesc");
|
var showDesc = adj.getData("showDesc");
|
||||||
if( desc != "" && showDesc ) {
|
if( desc != "" && showDesc ) {
|
||||||
//now adjust the label placement
|
//now adjust the label placement
|
||||||
|
|
|
@ -64,6 +64,7 @@ belongs_to :item_category
|
||||||
@synapsedata['$desc'] = synapse.desc
|
@synapsedata['$desc'] = synapse.desc
|
||||||
@synapsedata['$showDesc'] = false
|
@synapsedata['$showDesc'] = false
|
||||||
@synapsedata['$category'] = synapse.category
|
@synapsedata['$category'] = synapse.category
|
||||||
|
@synapsedata['$id'] = synapse.id
|
||||||
@synapsedata['$userid'] = synapse.user.id
|
@synapsedata['$userid'] = synapse.user.id
|
||||||
@synapsedata['$username'] = synapse.user.name
|
@synapsedata['$username'] = synapse.user.name
|
||||||
json.data @synapsedata
|
json.data @synapsedata
|
||||||
|
|
|
@ -32,6 +32,7 @@ end
|
||||||
@synapsedata['$desc'] = synapse.desc
|
@synapsedata['$desc'] = synapse.desc
|
||||||
@synapsedata['$showDesc'] = false
|
@synapsedata['$showDesc'] = false
|
||||||
@synapsedata['$category'] = synapse.category
|
@synapsedata['$category'] = synapse.category
|
||||||
|
@synapsedata['$id'] = synapse.id
|
||||||
@synapsedata['$userid'] = synapse.user.id
|
@synapsedata['$userid'] = synapse.user.id
|
||||||
@synapsedata['$username'] = synapse.user.name
|
@synapsedata['$username'] = synapse.user.name
|
||||||
json.data @synapsedata
|
json.data @synapsedata
|
||||||
|
|
|
@ -16,6 +16,7 @@ has_many :maps, :through => :mappings
|
||||||
@synapsedata['$desc'] = self.desc
|
@synapsedata['$desc'] = self.desc
|
||||||
@synapsedata['$showDesc'] = false
|
@synapsedata['$showDesc'] = false
|
||||||
@synapsedata['$category'] = self.category
|
@synapsedata['$category'] = self.category
|
||||||
|
@synapsedata['$id'] = synapse.id
|
||||||
@synapsedata['$userid'] = synapse.user.id
|
@synapsedata['$userid'] = synapse.user.id
|
||||||
@synapsedata['$username'] = synapse.user.name
|
@synapsedata['$username'] = synapse.user.name
|
||||||
json.data @synapsedata
|
json.data @synapsedata
|
||||||
|
@ -37,6 +38,7 @@ has_many :maps, :through => :mappings
|
||||||
@synapsedata['$desc'] = synapse.desc
|
@synapsedata['$desc'] = synapse.desc
|
||||||
@synapsedata['$showDesc'] = false
|
@synapsedata['$showDesc'] = false
|
||||||
@synapsedata['$category'] = synapse.category
|
@synapsedata['$category'] = synapse.category
|
||||||
|
@synapsedata['$id'] = synapse.id
|
||||||
@synapsedata['$userid'] = synapse.user.id
|
@synapsedata['$userid'] = synapse.user.id
|
||||||
@synapsedata['$username'] = synapse.user.name
|
@synapsedata['$username'] = synapse.user.name
|
||||||
json.data @synapsedata
|
json.data @synapsedata
|
||||||
|
|
Loading…
Reference in a new issue