summaryrefslogtreecommitdiff
path: root/skins/larry/ui.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-01-20 12:12:21 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-01-20 12:12:21 +0100
commit1d6082c5e2ad4f12986c59fee49bec5bc68bd829 (patch)
treefc7c6b55745c3a84e137c58150f29175dd2e1151 /skins/larry/ui.js
parent9202e93b754d07c0e6312f8b51bd4092ea14961d (diff)
Fix thread/list mode update and display
Diffstat (limited to 'skins/larry/ui.js')
-rw-r--r--skins/larry/ui.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index e5fce9197..b95e1f1c6 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -139,7 +139,8 @@ function rcube_mail_ui()
if (rcmail.env.task == 'mail') {
rcmail.addEventListener('menu-open', menu_open)
.addEventListener('menu-save', menu_save)
- .addEventListener('responseafterlist', function(e){ switch_view_mode(rcmail.env.threading ? 'thread' : 'list') });
+ .addEventListener('responseafterlist', function(e){ switch_view_mode(rcmail.env.threading ? 'thread' : 'list', true) })
+ .addEventListener('responseaftersearch', function(e){ switch_view_mode(rcmail.env.threading ? 'thread' : 'list', true) });
var dragmenu = $('#dragmessagemenu');
if (dragmenu.length) {
@@ -730,9 +731,9 @@ function rcube_mail_ui()
/**
*
*/
- function switch_view_mode(mode)
+ function switch_view_mode(mode, force)
{
- if (!$('#mail'+mode+'mode').hasClass('disabled')) {
+ if (force || !$('#mail'+mode+'mode').hasClass('disabled')) {
$('#maillistmode, #mailthreadmode').removeClass('selected');
$('#mail'+mode+'mode').addClass('selected');
}