diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-05-01 14:47:27 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-05-01 14:47:27 +0000 |
| commit | 697d837ae17bb957f70bfc603dd19640982e2e8c (patch) | |
| tree | 6bd6bdae93d107e937ca7dbd6d1daaf46617b67b /roundcubemail/program/steps/mail/compose.inc | |
| parent | 1fad3903dcdba69355810bb3d70d2a9399389810 (diff) | |
Applied patch for requesting receipts by Salvatore Ansani
git-svn-id: https://svn.roundcube.net/trunk@205 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/compose.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index d278279d9..b25c3690f 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -567,6 +567,22 @@ function rcmail_priority_selector($attrib) } +function rcmail_receipt_checkbox($attrib) + { + list($form_start, $form_end) = get_form_tags($attrib); + unset($attrib['form']); + + $attrib['name'] = '_receipt'; + $checkbox = new checkbox(array('name' => '_receipt', 'id' => 'receipt', 'value' => 1)); + + $out = $form_start ? "$form_start\n" : ''; + $out .= $checkbox->show(0); + $out .= $form_end ? "\n$form_end" : ''; + + return $out; + } + + function get_form_tags($attrib) { global $CONFIG, $OUTPUT, $JS_OBJECT_NAME, $MESSAGE_FORM, $SESS_HIDDEN_FIELD; |
