summaryrefslogtreecommitdiff
path: root/scripts/textanalysis.js
diff options
context:
space:
mode:
authorOwen <despito@MacBook-Pro-de-Despito.local>2014-08-08 16:38:36 +0300
committerOwen <despito@MacBook-Pro-de-Despito.local>2014-08-08 16:38:36 +0300
commitb664c220bbd6ae41f96e31fe575d059798594feb (patch)
tree43e3e0b3f115549404938dd6335eab625d706c1c /scripts/textanalysis.js
parent062b9b24c521d5153ed5b8cba43fd367784762d1 (diff)
Issue #14
Diffstat (limited to 'scripts/textanalysis.js')
-rw-r--r--scripts/textanalysis.js7
1 files changed, 4 insertions, 3 deletions
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('<table><tr><td style="height:28px"></td></tr><tr><td>' + "Chosen Type: " + nodetypes[typeindex] + '</td></tr></table>');
+ graph.findCoordinates(lastnode,null);
} else {
if (typeindex > 0) typeindex--;
else typeindex = 4;
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();
@@ -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 = "";