|
|
@ -2514,22 +2514,23 @@ function rcube_webmail()
|
|
|
|
// removes messages that doesn't exists from list selection array
|
|
|
|
// removes messages that doesn't exists from list selection array
|
|
|
|
this.update_selection = function()
|
|
|
|
this.update_selection = function()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var selected = this.message_list.selection,
|
|
|
|
var list = this.message_list,
|
|
|
|
rows = this.message_list.rows,
|
|
|
|
selected = list.selection,
|
|
|
|
|
|
|
|
rows = list.rows,
|
|
|
|
i, selection = [];
|
|
|
|
i, selection = [];
|
|
|
|
|
|
|
|
|
|
|
|
for (i in selected)
|
|
|
|
for (i in selected)
|
|
|
|
if (rows[selected[i]])
|
|
|
|
if (rows[selected[i]])
|
|
|
|
selection.push(selected[i]);
|
|
|
|
selection.push(selected[i]);
|
|
|
|
|
|
|
|
|
|
|
|
this.message_list.selection = selection;
|
|
|
|
list.selection = selection;
|
|
|
|
|
|
|
|
|
|
|
|
// reset preview frame, if currently previewed message is not selected (has been removed)
|
|
|
|
// reset preview frame, if currently previewed message is not selected (has been removed)
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
var win = this.get_frame_window(this.env.contentframe),
|
|
|
|
var win = this.get_frame_window(this.env.contentframe),
|
|
|
|
id = win.rcmail.env.uid;
|
|
|
|
id = win.rcmail.env.uid;
|
|
|
|
|
|
|
|
|
|
|
|
if (id && $.inArray(id, selection) < 0)
|
|
|
|
if (id && !list.in_selection(id))
|
|
|
|
this.show_contentframe(false);
|
|
|
|
this.show_contentframe(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (e) {};
|
|
|
|
catch (e) {};
|
|
|
|