diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-01-20 12:12:21 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-01-20 12:12:21 +0100 |
commit | 1d6082c5e2ad4f12986c59fee49bec5bc68bd829 (patch) | |
tree | fc7c6b55745c3a84e137c58150f29175dd2e1151 /skins/larry | |
parent | 9202e93b754d07c0e6312f8b51bd4092ea14961d (diff) |
Fix thread/list mode update and display
Diffstat (limited to 'skins/larry')
-rw-r--r-- | skins/larry/ui.js | 7 |
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'); } |