summaryrefslogtreecommitdiff
path: root/src/textanalysis.ui.js
AgeCommit message (Collapse)Author
2014-12-04move nodetypes to consts, add descriptions. Fixes #48Alon Levy
2014-12-04Fixes #173 - note that an enter is still required when using u/down keysAlon Levy
Actual fix is change from keypress to keydown. tested with chrome.
2014-12-04Fixes #178: handle clicks on the plus buttonAlon Levy
2014-12-04first stab at add button click - not working when bar is extendedAlon Levy
2014-12-04tab should not change node from last edit; now can tab when sentence is emptyAlon Levy
2014-12-03Fixes #171, Fixes #137Alon Levy
One line, two changes: keypress->keydown: - fixes #137. Chrome doesn't dispatch a keypressed on tab. Firefox and chrome both dispatch a keydown, so this works in both. $(document)->element: - fixes #171. Don't listen to text input events globally, only on the element.
2014-11-29history: record input fieldAlon Levy
2014-11-29use Bacon instead of signalAlon Levy
See https://github.com/baconjs/bacon.js Usage right now: we have rz_bus to hold global busses: - names: for autosuggest - ui busses: - ui_key - ui_input The events are objects with {where: from consts, keys/input} (could maybe just use the events and rely on the target element class/id) And graph has it's own bus: graph.diffBus (camelcase probably not the right style - will fix in later commit) To publish to a bus you use push. To insert another stream to a bus you use plug. To listen to a bus you use onValue (you can use subscribe too to get errors and end of stream event, but we don't use that yet). This allows usage of map, filter, flatMap, see github repo for cool examples.
2014-11-29textanalysis.ui: use switches and make signals fire after processing eventAlon Levy
2014-11-28textanalysis.ui: make typeselection component likeAlon Levy
2014-11-25textanalysis.ui: fix for lingering #102 issueAlon Levy
After using up/down keys to select one of the entries you had an extra enter required to "complete" the sentence. Reproduce: ctrl-alt-i (focus on 'Type here to create a network', #textanalysis) The first enter is the selection, the second is ignored (the bug fixed by this commit), the third is handled by the #textanalysis keypress trigger. The fix was simple, not sure why it works. Seems there is a keyup/keypress interaction. The keyup was on the document element, replaced by a keypress on the same element.
2014-11-25textanalysis.ui: remove debug printsAlon Levy
2014-11-25Fixes #102 - autocomplete with spacesAlon Levy
Possibly introduces required double enters sometimes. This is a result of an exception thrown in the callback, needs work.
2014-11-23call graph update via presenter, rm graph obj. manglingLV-426
2014-11-18adding missing jquery dependencyLV-426
2014-11-13rename scripts/ -> src/LV-426