diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-08-11 13:11:10 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-08-11 13:11:10 +0200 |
commit | e9ecd49f7460f571e2bf13161038371e2d5f8bfb (patch) | |
tree | fa3c3ad4ab2b87485905879f52c6b45e545303a6 /program/js/treelist.js | |
parent | 1c70ff9d2471fa48f5ffe9d270b3b04e6ec58a63 (diff) |
Added namespace filter in Folder Manager
Diffstat (limited to 'program/js/treelist.js')
-rw-r--r-- | program/js/treelist.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/program/js/treelist.js b/program/js/treelist.js index cc1880da2..5e6d326fc 100644 --- a/program/js/treelist.js +++ b/program/js/treelist.js @@ -522,6 +522,11 @@ function rcube_treelist_widget(node, p) var li, sli; if (!node.virtual && !node.deleted && String(node.text).toLowerCase().indexOf(q) >= 0 && hits.indexOf(node.id) < 0) { li = id2dom(node.id); + + // skip already filtered nodes + if (li.data('filtered')) + return; + sli = $('<li>') .attr('id', li.attr('id') + '--xsR') .attr('class', li.attr('class')) @@ -566,7 +571,7 @@ function rcube_treelist_widget(node, p) searchfield.val(''); $(container).children('li.searchresult__').remove(); - $(container).children('li').show(); + $(container).children('li').filter(function() { return !$(this).data('filtered'); }).show(); search_active = false; |