Reset search after folder creation/remove/rename

pull/211/head
Aleksander Machniak 10 years ago
parent 66233b76c8
commit ef4c478760

@ -5834,6 +5834,12 @@ function rcube_webmail()
if (!this.gui_objects.subscriptionlist)
return false;
// reset searching
if (this.subscription_list.is_search()) {
this.subscription_select();
this.subscription_list.reset_search();
}
// disable drag-n-drop temporarily
this.subscription_list.draggable('destroy').droppable('destroy');
@ -5999,6 +6005,12 @@ function rcube_webmail()
return false;
}
// reset searching
if (this.subscription_list.is_search()) {
this.subscription_select();
this.subscription_list.reset_search();
}
var subfolders = {},
row = this.subscription_list.get_item(oldid, true),
parent = $(row).parent(),
@ -6044,6 +6056,12 @@ function rcube_webmail()
// remove the table row of a specific mailbox from the table
this.remove_folder_row = function(folder)
{
// reset searching
if (this.subscription_list.is_search()) {
this.subscription_select();
this.subscription_list.reset_search();
}
var list = [], row = this.subscription_list.get_item(folder, true);
// get subfolders if any

@ -94,6 +94,7 @@ function rcube_treelist_widget(node, p)
this.get_node = get_node;
this.get_selection = get_selection;
this.is_search = is_search;
this.reset_search = reset_search;
/////// startup code (constructor)

Loading…
Cancel
Save