summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-09-23 20:32:05 +0300
committerAlon Levy <alon@pobox.com>2014-09-23 20:32:06 +0300
commit6a3c4aa7d0a2663122c7099d235f1cb908ce9b20 (patch)
tree6049fedf80b20151d019fbdd90af92ad7705a0d3
parent282b05df2d86d6222f1eae92eb160ad4a47f812f (diff)
textanalysis-ui: a little cleanup
according to my yet unwritten coding conventions: 1. no single line blocks 2. no empty lines without a good reason
-rw-r--r--scripts/rhizicore.js2
-rw-r--r--scripts/textanalysis-ui.js5
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();
}