diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-05-15 19:49:24 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-05-15 19:49:24 +0200 |
commit | 44fe214025658f9abe407e744db78b308f1e3db2 (patch) | |
tree | fbd7744c61223887367724f2ab4f1a593744a7ac | |
parent | e8f0802f0351e1b94a44fe90c877e8797bdb20b3 (diff) | |
parent | eb62a816fba72e54361a1407d962082443d4b041 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
-rw-r--r-- | program/js/treelist.js | 16 | ||||
-rw-r--r-- | skins/larry/styles.css | 3 |
2 files changed, 10 insertions, 9 deletions
diff --git a/program/js/treelist.js b/program/js/treelist.js index a99ee1e62..85d8aa928 100644 --- a/program/js/treelist.js +++ b/program/js/treelist.js @@ -282,12 +282,14 @@ function rcube_treelist_widget(node, p) search_active = search_; // add clone to current search results (top level) - $('<li>') - .attr('id', li.attr('id') + '--xsR') - .attr('class', li.attr('class')) - .addClass('searchresult__') - .append(li.children().first().clone(true, true)) - .appendTo(container); + if (!li.is(':visible')) { + $('<li>') + .attr('id', li.attr('id') + '--xsR') + .attr('class', li.attr('class')) + .addClass('searchresult__') + .append(li.children().first().clone(true, true)) + .appendTo(container); + } } } // insert at top level @@ -434,7 +436,7 @@ function rcube_treelist_widget(node, p) var search_tree = function(items) { $.each(items, function(i, node) { var li, sli; - if (!node.virtual && !node.deleted && String(node.text).toLowerCase().indexOf(q) >= 0) { + if (!node.virtual && !node.deleted && String(node.text).toLowerCase().indexOf(q) >= 0 && hits.indexOf(node.id) < 0) { li = id2dom(node.id); sli = $('<li>') .attr('id', li.attr('id') + '--xsR') diff --git a/skins/larry/styles.css b/skins/larry/styles.css index 106279828..0ddb29653 100644 --- a/skins/larry/styles.css +++ b/skins/larry/styles.css @@ -439,8 +439,7 @@ a.iconbutton.searchoptions { background-position: -2px -317px; } -a.iconbutton.searchicon, -a.iconbutton.searchoptions { +a.iconbutton.searchicon { width: 15px; } |