From d578784aa0631adf228052742eaf64ff037363a8 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 9 Oct 2014 15:34:43 +0300 Subject: rhizicore: fix some indentation in editName Not required right now, triggered by reverted patch. --- scripts/rhizicore.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'scripts') 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; -- cgit v1.3.1