Fix cabinet navigation.

Signed-off-by: Eric Riggs <ericriggs42@gmail.com>
This commit is contained in:
Eric Riggs
2018-04-01 19:59:02 -04:00
committed by Roberto Rosario
parent c7caa53b52
commit 5b8ae1be2e
2 changed files with 5 additions and 2 deletions
@@ -17,6 +17,8 @@
} }
</script> </script>
{% block stylesheets %}{% endblock %}
{% if appearance_type == 'plain' %} {% if appearance_type == 'plain' %}
{% block content_plain %}{% endblock %} {% block content_plain %}{% endblock %}
{% else %} {% else %}
@@ -37,10 +37,11 @@
<script> <script>
$(function () { $(function () {
var jstreeElement = $('.jstree'); var jstreeElement = $('.jstree');
jstreeElement jstreeElement
.on("select_node.jstree", function (e, data) { .on('select_node.jstree', function (e, data) {
if(data.selected.length) { if(data.selected.length) {
window.location.href=data.instance.get_node(data.selected[0]).data.href; partialNavigation.setLocation(data.instance.get_node(data.selected[0]).data.href);
} }
}) })
.jstree({ .jstree({