summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-10-09 15:34:43 +0300
committerAlon Levy <alon@pobox.com>2014-10-09 15:34:45 +0300
commitd578784aa0631adf228052742eaf64ff037363a8 (patch)
treeebf3ce088fcc5cb3782f00139faaee5f65737ba6
parentc12da371e6f418b8a189b310846f54589235a625 (diff)
rhizicore: fix some indentation in editName
Not required right now, triggered by reverted patch.
-rw-r--r--scripts/rhizicore.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index 235969a6..2402382d 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -311,18 +311,17 @@ function myGraph(el) {
if ((index !== undefined)) {
if ((index2 !== undefined)) {
- acceptReplace = confirm(index2.id+" will replace "+index.id+", are you sure?");
+ acceptReplace = confirm('"' + index2.id + '" will replace "' + index.id + '", are you sure?');
if(acceptReplace){
for (var i = 0; i < links.length; i++) {
- if (links[i].source === index) {
- links[i].source = index2;
- }
-
- if (links[i].target === index) {
- links[i].target = index2;
+ if (links[i].source === index) {
+ links[i].source = index2;
+ }
+ if (links[i].target === index) {
+ links[i].target = index2;
+ }
}
- }
- graph.removeNode(index.id,null);
+ graph.removeNode(index.id,null);
}
}else{
index.id = new_id;