Close all node before searching for nodes in admin menus.

This commit is contained in:
Jan Böhmer 2019-04-05 19:38:24 +02:00
parent 56d0c5eaf5
commit 27f2b040af

View file

@ -163,6 +163,7 @@ $(document).on("ajaxUI:start ajaxUI:reload", function() {
let _this = this; let _this = this;
let $search = $($(this).data('treeSearch')); let $search = $($(this).data('treeSearch'));
$search.on( 'input', function() { $search.on( 'input', function() {
$(_this).treeview('collapseAll', { silent: true });
$(_this).treeview('search', [$search.val()]); $(_this).treeview('search', [$search.val()]);
}); });
} }