From 6a3c4aa7d0a2663122c7099d235f1cb908ce9b20 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 23 Sep 2014 20:32:05 +0300 Subject: 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 --- scripts/rhizicore.js | 2 -- scripts/textanalysis-ui.js | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'scripts') 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('
' + "Chosen Type: " + nodetypes[typeindex] + '
'); graph.findCoordinates(lastnode,null); - } graph.updateGraph(); } -- cgit v1.3.1