diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-12-08 18:14:55 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-16 10:59:14 +0200 |
| commit | 2f5bb95b1acaf1dcb054dc0785b95b00b10d7d6b (patch) | |
| tree | 9074ffa15d4efffba14a556d24a48df1dc976d1b /src/model | |
| parent | 2a130b6e31729274a73dbdee4954a58b4fa926ef (diff) | |
pass node type as __label_set array
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/util.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/util.js b/src/model/util.js index 63dd9ca7..67eebf5e 100644 --- a/src/model/util.js +++ b/src/model/util.js @@ -29,7 +29,7 @@ function($, model_diff) { */ function adapt_format_write_node(n_raw) { var ret = $.extend({ - '__type' : n_raw.type, + '__label_set' : [n_raw.type], }, n_raw); delete ret.type; @@ -66,9 +66,9 @@ function($, model_diff) { */ function adapt_format_write_link(l_raw) { var ret = $.extend({ - '__src' : l_raw.sourceId, - '__dst' : l_raw.targetId, - '__type' : 'textual_link', + '__src_id' : l_raw.sourceId, + '__dst_id' : l_raw.targetId, + '__label_set' : ['textual_link'], }, l_raw); delete ret.source; |
