Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2019-11-22 11:41:25 +0300
committerAleksander Machniak <alec@alec.pl>2019-11-22 11:41:25 +0300
commitdbc2b5e11c4356793a020eb4da5008d729bbb91a (patch)
tree199cf493feb8583f0058c8a0a755e534a1cb8043 /program
parent4485940d0e96e89b7faf24438a09a826335af147 (diff)
Fix bug where deleting a saved search in addressbook caused display issue on sources/groups list (#7061)
also remove dead code.
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js5
-rw-r--r--program/js/treelist.js2
2 files changed, 3 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js
index c7d782fa8..0a8e12afa 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -7143,9 +7143,8 @@ function rcube_webmail()
// callback from server upon search-delete command
this.remove_search_item = function(id)
{
- var li, key = 'S'+id;
- if (this.savedsearchlist.remove(key)) {
- this.triggerEvent('search_delete', { id:id, li:li });
+ if (this.savedsearchlist.remove('S' + id)) {
+ this.triggerEvent('search_delete', {id: id});
}
this.env.search_id = null;
diff --git a/program/js/treelist.js b/program/js/treelist.js
index c120e4a29..21b22803c 100644
--- a/program/js/treelist.js
+++ b/program/js/treelist.js
@@ -519,7 +519,7 @@ function rcube_treelist_widget(node, p)
// remove tree-toggle button and children list
if (!parent.children().length) {
- parent.parent().find('div.treetoggle').remove();
+ parent.parent('li').find('div.treetoggle').remove();
parent.remove();
}