summaryrefslogtreecommitdiff
path: root/src/client/model/graph.js
AgeCommit message (Collapse)Author
2014-12-28client: fix #238 - ReferenceError due to refactoring errorAlon Levy
Doesn't fix node color, that is fixed in next commit
2014-12-28Fixes #232 - #x #y raises error and doesn't get committedAlon Levy
2014-12-23client: fix submitting sentences including existing nodesAlon Levy
2014-12-23use topo_diff for user input changesAlon Levy
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).
2014-12-23client/model/graph/removeNode: complain early on unknown idAlon Levy
2014-12-23client: don't send temp nodes/link topo_diffs to serverAlon Levy
2014-12-23be sensibleAlon Levy
2014-12-23client: removal of links through server; Fixes #228Alon Levy
Code is ugly on too many counts, but mainly: 1. repeats local change twice, once for temp and once for non-temp that goes through server. 2. handles topo_diff reply expecting a single id instead of having a general topo_diff reply handler that will take care of it, possibly hanging a callback on it for graph update.
2014-12-22client: handle link changes via attribute diffs (adds graph.update_link ↵Alon Levy
copied from update_node) Adds a copied TODO for handling id changes (i.e. same problem on nodes) plus a new TODO for a fake API (relevant to both nodes and links)
2014-12-22client/model/graph: add missing spaceAlon Levy
2014-12-22client/graph: trim names sent; not sure this actually works, and missing __type?Alon Levy
2014-12-22client: add warning reminding of _editProperty last user (robot)Alon Levy
2014-12-22client: use update_node for svg_input node name editingAlon Levy
2014-12-22client/graph: remove dead code (superceded by update_node)Alon Levy
2014-12-22remove no longer relevant todoAlon Levy
2014-12-22client/model/graph.update_node: dedent, add TODO for fake APIAlon Levy
2014-12-22client/model/graph: drop dead code: editLinkTargetAlon Levy
2014-12-22client/model/graph: add console log on ajax errorAlon Levy
2014-12-16moving files around after repository mergerAlon Levy