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>
|
</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({
|
||||||
|
|||||||
Reference in New Issue
Block a user