summaryrefslogtreecommitdiff
path: root/program/steps/mail/compose.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-09-07 18:51:16 +0000
committerthomascube <thomas@roundcube.net>2006-09-07 18:51:16 +0000
commitd656f1ca71de0ec88da9ac84987bdeb44e371ccf (patch)
tree8c20b20ebaf0bc4eb0c23b2e0fc84715c42d35ae /program/steps/mail/compose.inc
parent2f2f15b7aabe19e45dad9bddb7eb7f4394aa1e21 (diff)
Made automatic draft saving configurable
Diffstat (limited to 'program/steps/mail/compose.inc')
-rw-r--r--program/steps/mail/compose.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 2f650d6e4..14adb1266 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -55,6 +55,9 @@ $_SESSION['compose'] = array('id' => uniqid(rand()));
// add some labels to client
rcube_add_label('nosubject', 'norecipientwarning', 'nosubjectwarning', 'nobodywarning', 'notsentwarning', 'savingmessage', 'sendingmessage', 'messagesaved');
+// add config parameter to client script
+$OUTPUT->add_script(sprintf("%s.set_env('draft_autosave', %d);", $JS_OBJECT_NAME, !empty($CONFIG['drafts_mbox']) ? $CONFIG['draft_autosave'] : 0));
+
// get reference message and set compose mode
if ($msg_uid = get_input_value('_reply_uid', RCUBE_INPUT_GET))