diff options
| author | Alon Levy <alon@pobox.com> | 2014-09-21 17:50:32 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-09-21 17:50:32 +0300 |
| commit | a0660a8b35ce41320d4a5ff550d24b269ad0e15c (patch) | |
| tree | a547a46fb0b0ab3c809ed1a215a2b22b2a124f2e | |
| parent | d65d2252f3fb66c3a0ed2a9b2eb9868d467fe533 (diff) | |
Fixes #59 (rename node title changing case only results in node deletion)
| -rw-r--r-- | scripts/rhizicore.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 2d75e798..dcc35dc6 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -230,8 +230,11 @@ function myGraph(el) { var new_text = newname; id = id && id.toLowerCase(); var new_id = newname.toLowerCase(); + var index2 = undefined; + if (id != new_id) { + index2 = findNode(new_id, type); + } var index = findNode(id, type); - var index2 = findNode(new_id, type); var acceptReplace=true; if ((index !== undefined)) { |
