From b664c220bbd6ae41f96e31fe575d059798594feb Mon Sep 17 00:00:00 2001 From: Owen Date: Fri, 8 Aug 2014 16:38:36 +0300 Subject: Issue #14 --- scripts/textanalysis.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts/textanalysis.js') diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index fcf20af6..fe73a1a1 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -70,14 +70,15 @@ function changeType(arg, id) { if (typeindex < 4) typeindex++; else typeindex = 0; graph.editType(id, null, nodetypes[typeindex]); - $('.typeselection').html('
' + "Chosen Type: " + nodetypes[typeindex] + '
'); + graph.findCoordinates(lastnode,null); } else { if (typeindex > 0) typeindex--; else typeindex = 4; graph.editType(id, null, nodetypes[typeindex]); $('.typeselection').html('
' + "Chosen Type: " + nodetypes[typeindex] + '
'); + graph.findCoordinates(lastnode,null); } graph.updateGraph(); @@ -276,9 +277,9 @@ function TextAnalyser2(newtext, finalize) { } } - console.log(sentence); + /*console.log(sentence); console.log(completeSentence); - console.log(orderStack); + console.log(orderStack);*/ //STAR CASE var verb = ""; -- cgit v1.3.1