diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-23 21:53:46 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-23 22:03:17 +0200 |
| commit | f7ff8bc38410c2666665c4c70cc71c17f6eb7835 (patch) | |
| tree | 458bd97cf23a2672102d85babe1deaa2ec581233 /src/client/textanalysis.ui.js | |
| parent | 3e3944c42517a2745d9dd2312e8c3a571de41863 (diff) | |
use topo_diff for user input changes
pretty large commit, but it mainly boils to
- reusing the same format clone returns to the client for topo_diff
bad bad code introduced mainly in client side, but server wasn't spared:
- graph/commit_topo__diff massages the links too much - this should not
be there at all, it should be in the correct format to begin with.
server code duplication between clone & topo_diff post processing,
should be factored out
on the good side: single transaction whenever user presses enter, and
the correct place to send back any accumulated diffs (other user
changes).
Diffstat (limited to 'src/client/textanalysis.ui.js')
| -rw-r--r-- | src/client/textanalysis.ui.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/client/textanalysis.ui.js b/src/client/textanalysis.ui.js index 5f5718bd..52b886be 100644 --- a/src/client/textanalysis.ui.js +++ b/src/client/textanalysis.ui.js @@ -1,7 +1,7 @@ "use strict" -define(['jquery', 'Bacon', 'consts', 'rz_bus', 'rz_core', 'textanalysis', 'view/completer'], -function($, Bacon, consts, rz_bus, rz_core, textanalysis, completer) { +define(['jquery', 'Bacon', 'consts', 'rz_bus', 'rz_core', 'rz_config', 'textanalysis', 'view/completer'], +function($, Bacon, consts, rz_bus, rz_core, rz_config, textanalysis, completer) { var text = "", // Last text of sentence element_name = '#textanalyser', @@ -65,8 +65,7 @@ function analyzeSentence(sentence, finalize) break; } - var backend_commit = false; - ret.applyToGraph(rz_core.graph, backend_commit); + ret.applyToGraph(rz_core.graph, rz_config.backend_enabled); if (finalize || sentence.length == 0) { typeselection.hide(); |
