corrade-nucleus-nucleons – Diff between revs 10 and 13
?pathlinks?
Rev 10 | Rev 13 | |||
---|---|---|---|---|
Line 358... | Line 358... | |||
358 | path: node.id |
358 | path: node.id |
|
359 | } |
359 | } |
|
360 | }).done(function(response) { |
360 | }).done(function(response) { |
|
361 | var data = wasCSVToArray(response.data); |
361 | var data = wasCSVToArray(response.data); |
|
362 | alert(JSON.stringify(data.chunk(10), 4, null)); |
362 | alert(JSON.stringify(data.chunk(10), 4, null)); |
|
363 | /*$.each($.stride(data, 10), function(i, e) { |
363 | $.each(data.chunk(10), function(i, e) { |
|
364 | alert(e); |
364 | alert(wasKeyValueObjectify(e)); |
|
365 | data.push({ |
365 | /*data.push({ |
|
366 | x: time + ++j * updateInterval, |
366 | x: time + ++j * updateInterval, |
|
367 | y: parseInt(e) |
367 | y: parseInt(e) |
|
368 | }); |
- | ||
369 | });*/ |
368 | });*/ |
|
370 | }); |
369 | }); |
|
- | 370 | }); |
||
371 | } |
371 | } |
|
372 | } |
372 | } |
|
373 | }).bind('move_node.jstree', function(e, data) { |
373 | }).bind('move_node.jstree', function(e, data) { |
|
374 | // Once the node is moved, update the node ID to reflect the path change. |
374 | // Once the node is moved, update the node ID to reflect the path change. |
|
375 | var parentPath = data.parent != '/' ? data.parent : ""; |
375 | var parentPath = data.parent != '/' ? data.parent : ""; |