Commit 15187d9e authored by Administrator's avatar Administrator

[FEATURE TEST] enabling tree view.

parent fdd156a3
...@@ -379,38 +379,38 @@ buttonAddDataset.click(function() { ...@@ -379,38 +379,38 @@ buttonAddDataset.click(function() {
// $('.tree').jstree({ $('.tree').jstree({
// 'core' : { 'core' : {
// 'data' : { 'data' : {
// 'url' : function(node) { 'url' : function(node) {
// var url = '/api/nodes?' + ((node.id === '#') var url = '/api/nodes?' + ((node.id === '#')
// ? 'type=Project' ? 'type=Project'
// : ('parent=' + node.id) : ('parent=' + node.id)
// ); );
// console.log(url); console.log(url);
// return url; return url;
// }, },
// }, },
// }, },
// "plugins" : ["types"], "plugins" : ["types"],
// "types" : { "types" : {
// "#" : { "#" : {
// "max_children" : 1, "max_children" : 1,
// "max_depth" : 4, "max_depth" : 4,
// "valid_children" : ["root"] "valid_children" : ["root"]
// }, },
// "Project" : { "Project" : {
// "icon" : "http://www.jstree.com/static/3.0.8/assets/images/tree_icon.png", "icon" : "http://www.jstree.com/static/3.0.8/assets/images/tree_icon.png",
// "valid_children" : ["default"] "valid_children" : ["default"]
// }, },
// "Corpus" : { "Corpus" : {
// "valid_children" : ["default","file"] "valid_children" : ["default","file"]
// }, },
// "Document" : { "Document" : {
// "icon" : "glyphicon glyphicon-file", "icon" : "glyphicon glyphicon-file",
// "valid_children" : [] "valid_children" : []
// } }
// }, },
// }); });
// var graph = $('.graph-it').graphIt(640, 480); // var graph = $('.graph-it').graphIt(640, 480);
\ No newline at end of file
...@@ -77,11 +77,10 @@ ...@@ -77,11 +77,10 @@
<script type="text/javascript" src="{% static "js/jquery/jquery.min.js" %}"></script> <script type="text/javascript" src="{% static "js/jquery/jquery.min.js" %}"></script>
<script type="text/javascript" src="{% static "js/jquery/jquery-ui.js" %}"></script> <script type="text/javascript" src="{% static "js/jquery/jquery-ui.js" %}"></script>
<!--
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jstree/3.0.4/themes/default/style.min.css" /> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jstree/3.0.4/themes/default/style.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/jstree/3.0.4/jstree.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jstree/3.0.4/jstree.min.js"></script>
-->
<script type="text/javascript" src="{% static "js/charts/dygraph-combined.js" %}"></script> <script type="text/javascript" src="{% static "js/charts/dygraph-combined.js" %}"></script>
<script type="text/javascript" src="{% static "js/graph-it.js" %}"></script> <script type="text/javascript" src="{% static "js/graph-it.js" %}"></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment