diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/rhizicore.js | 2 | ||||
| -rw-r--r-- | scripts/textanalysis-ui.js | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index c0f61228..4c584506 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -267,8 +267,6 @@ function myGraph(el) { } } - - this.editType = function(id, state, newtype) { var index = findNode(id, state); if ((index !== undefined)) { diff --git a/scripts/textanalysis-ui.js b/scripts/textanalysis-ui.js index f0dc6aa2..3cf75eb7 100644 --- a/scripts/textanalysis-ui.js +++ b/scripts/textanalysis-ui.js @@ -117,7 +117,9 @@ function textSelect(inp, s, e) { } function changeType(arg, id) { - if(!id)id="new node"; + if(!id) { + id = "new node"; + } if (arg === 'up') { if (typeindex < 4) typeindex++; else typeindex = 0; @@ -131,7 +133,6 @@ function changeType(arg, id) { graph.editType(id, null, nodetypes[typeindex]); $('.typeselection').html('<table><tr><td style="height:28px"></td></tr><tr><td>' + "Chosen Type: " + nodetypes[typeindex] + '</td></tr></table>'); graph.findCoordinates(lastnode,null); - } graph.updateGraph(); } |
