summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-11-10 14:04:33 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-11-10 14:04:33 +0100
commit85e60ada1558798669b29225aa530b4ba9310cdc (patch)
tree55bb42e7f13552df60c4b5de0bfda9097032103f /skins
parente46d060a4ab4b2a901c3dd4a3909490a547284e1 (diff)
First version of the local storage compose data saving feature; some behavioral improvements and encrytion are still to be added
Diffstat (limited to 'skins')
-rw-r--r--skins/larry/ui.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 660b18ff9..760cc7a03 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -110,7 +110,11 @@ function rcube_mail_ui()
});
}
else if (rcmail.env.action == 'compose') {
- rcmail.addEventListener('aftertoggle-editor', function(){ window.setTimeout(function(){ layout_composeview() }, 200); });
+ rcmail.addEventListener('aftertoggle-editor', function(e){
+ window.setTimeout(function(){ layout_composeview() }, 200);
+ if (e && e.mode)
+ $("select[name='editorSelector']").val(e.mode);
+ });
rcmail.addEventListener('aftersend-attachment', show_uploadform);
rcmail.addEventListener('add-recipient', function(p){ show_header_row(p.field, true); });