Commit 0f90be3d authored by Kedar A.'s avatar Kedar A. 💻

graph rendering issues solved

parent 6fa52b62
......@@ -46,6 +46,8 @@
// console.log($(".themes"))
if( ($(".themes").length > 0) ) { TreeTillNode() }
}, 100 );
$('article').unblock();
}
......
......@@ -184,8 +184,8 @@
</a>
<ul id="hover1" class="f-dropdown" data-dropdown-content style="width: 7em;">
<li><a class="fold"><i class="fi-plus"></i> {% trans "Open" %} </a></li>
<li><a class="unfold"><i class="fi-minus"></i> {% trans "Close" %} </a></li>
<li><a class="unfold"><i class="fi-minus"></i> {% trans "Open" %} </a></li>
<li><a class="fold"><i class="fi-plus"></i> {% trans "Close" %} </a></li>
</ul>
</div>
......@@ -388,30 +388,32 @@
{% if node and tree %}
{% if tree == "hierarchical" %}
$("article").block({message: '<h4>Building the theme tree...</h4>'});
$("#theme-drag-zoom-tree-container").addClass("hide")
$(".themes").removeClass("hide");
if({{unfold}})
{
$("article").block({message: '<h4>Building a graph... <br/>Please hold on...</h4>'});
$("#theme-drag-zoom-tree-container").addClass("hide")
$(".themes").removeClass("hide");
plotHierarchyTree(true);
}
else
{
$("article").block({message: '<h4>Building a graph... <br/>Please hold on...</h4>'});
$("#theme-drag-zoom-tree-container").addClass("hide")
$(".themes").removeClass("hide");
plotHierarchyTree(false);
}
{% else %}
$(".themes").addClass("hide");
{% if node %}
$("article").block({message: '<h4>Building a graph... <br/>Please hold on...</h4>'});
$("article").block({message: '<h4>Building the theme graph...</h4>'});
$.getJSON("{% url 'get_tree_hierarchy' group_id node.pk %}?collapsible=true", function(data){ treeData = data;})
.done(function(){plotDragZoomTree(treeData);
.done(function(){
plotDragZoomTree(treeData);
$('article').unblock();
});
{% endif %}
......
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