Fix cabinet navigation.

Signed-off-by: Eric Riggs <ericriggs42@gmail.com>
This commit is contained in:
Eric Riggs
2018-03-08 04:56:13 -04:00
committed by Roberto Rosario
parent c7caa53b52
commit 5b8ae1be2e
2 changed files with 5 additions and 2 deletions

View File

@@ -17,6 +17,8 @@
}
</script>
{% block stylesheets %}{% endblock %}
{% if appearance_type == 'plain' %}
{% block content_plain %}{% endblock %}
{% else %}

View File

@@ -37,10 +37,11 @@
<script>
$(function () {
var jstreeElement = $('.jstree');
jstreeElement
.on("select_node.jstree", function (e, data) {
.on('select_node.jstree', function (e, data) {
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({