Fix cabinet navigation.
Signed-off-by: Eric Riggs <ericriggs42@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
c7caa53b52
commit
5b8ae1be2e
@@ -17,6 +17,8 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
{% block stylesheets %}{% endblock %}
|
||||
|
||||
{% if appearance_type == 'plain' %}
|
||||
{% block content_plain %}{% endblock %}
|
||||
{% else %}
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user