diff options
author | st782s <statta@research.att.com> | 2017-05-04 07:48:42 -0400 |
---|---|---|
committer | st782s <statta@research.att.com> | 2017-05-04 12:28:17 -0400 |
commit | b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch) | |
tree | e69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js | |
parent | 39d1e62c84041831bfc52cca73b5ed5efaf57d27 (diff) |
[PORTAL-7] Rebase
This rebasing includes common libraries and common overlays projects
abstraction of components
Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8
Signed-off-by: st782s <statta@research.att.com>
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js b/ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js deleted file mode 100644 index eb8e429d..00000000 --- a/ecomp-portal-FE/client/bower_components/jqTree/static/examples/custom_html.js +++ /dev/null @@ -1,32 +0,0 @@ -$(function() { - var $tree = $('#tree1'); - - $tree.tree({ - data: ExampleData.example_data, - autoOpen: 1, - onCreateLi: function(node, $li) { - // Append a link to the jqtree-element div. - // The link has an url '#node-[id]' and a data property 'node-id'. - $li.find('.jqtree-element').append( - '<a href="#node-'+ node.id +'" class="edit" data-node-id="'+ node.id +'">edit</a>' - ); - } - }); - - // Handle a click on the edit link - $tree.on( - 'click', '.edit', - function(e) { - // Get the id from the 'node-id' data property - var node_id = $(e.target).data('node-id'); - - // Get the node from the tree - var node = $tree.tree('getNodeById', node_id); - - if (node) { - // Display the node name - alert(node.name); - } - } - ); -}); |