corrade-nucleus-nucleons – Diff between revs 13 and 14
?pathlinks?
Rev 13 | Rev 14 | |||
---|---|---|---|---|
Line 356... | Line 356... | |||
356 | command: 'inventory', |
356 | command: 'inventory', |
|
357 | action: 'ls', |
357 | action: 'ls', |
|
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 list = []; |
|
362 | alert(JSON.stringify(data.chunk(10), 4, null)); |
362 | $.each(wasCSVToArray(response.data) |
|
363 | $.each(data.chunk(10), function(i, e) { |
363 | .chunk(10), function(i, e) { |
|
364 | alert(wasKeyValueObjectify(e)); |
364 | e = wasKeyValueObjectify(e); |
|
365 | /*data.push({ |
365 | list.push({ |
|
- | 366 | 'id' : node.id === '/' ? '/' + e['item'] : node.id + '/' + e['item'], |
||
366 | x: time + ++j * updateInterval, |
367 | 'parent' : node.id, |
|
367 | y: parseInt(e) |
368 | 'data' : { |
|
- | 369 | 'type' : e['type'], |
||
- | 370 | 'time' : e['time'] |
||
- | 371 | }, |
||
- | 372 | 'text' : e['name'], |
||
- | 373 | 'children' : e['type'] === 'folder', |
||
- | 374 | 'icon' : '/pack-rat/img/icons/' + e['type'] + '.png', |
||
- | 375 | 'opened' : 'false' |
||
368 | });*/ |
376 | }); |
|
369 | }); |
377 | }); |
|
- | 378 | callback.call(this, list); |
||
370 | }); |
379 | }); |
|
371 | } |
380 | } |
|
372 | } |
381 | } |
|
373 | }).bind('move_node.jstree', function(e, data) { |
382 | }).bind('move_node.jstree', function(e, data) { |
|
374 | // Once the node is moved, update the node ID to reflect the path change. |
383 | // Once the node is moved, update the node ID to reflect the path change. |