Skip to content

Commit

Permalink
proposed fix #1276
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Jun 17, 2020
1 parent 3d9a1bd commit c115264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openatlas/forms/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def __call__(self, field: TreeField, **kwargs: Any) -> TreeSelect:
$(document).ready(function () {{
$("#{name}-tree").jstree({{
"core" : {{"check_callback": true, "data": {tree_data}}},
"search": {{"case_insensitive": true, "show_only_matches": true}},
"search": {{"case_insensitive": true, "show_only_matches": true, "show_only_matches_children": true}},
"plugins" : ["search"],
}});
$("#{name}-tree").on("select_node.jstree", function (e, data) {{
Expand Down Expand Up @@ -250,7 +250,7 @@ def __call__(self, field: TreeField, **kwargs: Any) -> TreeMultiSelect:
<script>
$("#{name}-tree").jstree({{
"core" : {{ "check_callback": true, "data": {tree_data} }},
"search": {{"case_insensitive": true, "show_only_matches": true}},
"search": {{"case_insensitive": true, "show_only_matches": true, "show_only_matches_children": true}},
"plugins": ["search", "checkbox"],
"checkbox": {{"three_state": false}}
}});
Expand Down

0 comments on commit c115264

Please sign in to comment.