summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-12-23 03:12:40 -0800
committerAleksander Machniak <alec@alec.pl>2013-12-23 03:12:40 -0800
commit440ca6292f61610cdf905272c253fa687ae398b6 (patch)
treedc3c6344d682716a930b3e6d1c70c2d5b2d64a1c /skins
parentb3c034ce300416312df033ea9114b20874ab478c (diff)
parent6e5bf9e3e68b99dc89b83b30174c114641696f6d (diff)
Merge pull request #156 from JohnDoh/previewtoggle
remember preview headers collapse status
Diffstat (limited to 'skins')
-rw-r--r--skins/larry/ui.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index d66131075..3c4740df2 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -156,6 +156,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){
@@ -721,6 +725,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');
}