diff options
author | PhilW <roundcube@tehinterweb.co.uk> | 2013-11-23 09:37:36 +0000 |
---|---|---|
committer | PhilW <roundcube@tehinterweb.co.uk> | 2013-11-23 09:37:36 +0000 |
commit | 6e5bf9e3e68b99dc89b83b30174c114641696f6d (patch) | |
tree | 335ee2ad2f7bd3d3c8e3be3a66e166013287983c /skins/larry/ui.js | |
parent | 7184b3a0e14c81e0e582052aff64f030f07699e6 (diff) |
remember preview header collapse status
Diffstat (limited to 'skins/larry/ui.js')
-rw-r--r-- | skins/larry/ui.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js index ae8ae5c55..9183291c5 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -128,6 +128,10 @@ function rcube_mail_ui() $('#attachment-list > li').each(function() { $(this).append($('<a class="drop"></a>').click(function() { attachmentmenu(this); })); }); + + if (get_pref('previewheaders') == '1') { + toggle_preview_headers(); + } } else if (rcmail.env.action == 'compose') { rcmail.addEventListener('aftertoggle-editor', function(e){ @@ -687,6 +691,8 @@ function rcube_mail_ui() button.attr('href', '#hide').removeClass('add').addClass('remove') else button.attr('href', '#details').removeClass('remove').addClass('add') + + save_pref('previewheaders', full.is(':visible') ? '1' : '0'); } |