Fix reply scrolling issue with text mode and start message below the quote (#1490114)
| | |
| | | - Fix handling of base64-encoded attachments with extra spaces (#1490111) |
| | | - Fix handling of UNKNOWN-CTE response, try do decode content client-side (#1490046) |
| | | - Fix bug where creating subfolders in shared folders wasn't possible without ACL extension (#1490113) |
| | | - Fix reply scrolling issue with text mode and start message below the quote (#1490114) |
| | | |
| | | RELEASE 1.0.3 |
| | | ------------- |
| | |
| | | if (!this.gui_objects.messageform) |
| | | return false; |
| | | |
| | | var i, input_from = $("[name='_from']"), |
| | | var i, pos, input_from = $("[name='_from']"), |
| | | input_to = $("[name='_to']"), |
| | | input_subject = $("input[name='_subject']"), |
| | | input_message = $("[name='_message']").get(0), |
| | |
| | | } |
| | | |
| | | if (!html_mode) { |
| | | this.set_caret_pos(input_message, this.env.top_posting ? 0 : $(input_message).val().length); |
| | | pos = this.env.top_posting ? 0 : input_message.value.length; |
| | | this.set_caret_pos(input_message, pos); |
| | | |
| | | // add signature according to selected identity |
| | | // if we have HTML editor, signature is added in callback |
| | | if (input_from.prop('type') == 'select-one') { |
| | | this.change_identity(input_from[0]); |
| | | } |
| | | |
| | | // scroll to the bottom of the textarea (#1490114) |
| | | if (pos) { |
| | | $(input_message).scrollTop(input_message.scrollHeight); |
| | | } |
| | | } |
| | | |
| | | // check for locally stored compose data |
| | |
| | | ) |
| | | )); |
| | | |
| | | $reply_mode = intval($RCMAIL->config->get('reply_mode')); |
| | | |
| | | if (!$bodyIsHtml) { |
| | | $body = preg_replace('/\r?\n/', "\n", $body); |
| | | $body = trim($body, "\n"); |
| | |
| | | $body = rcmail_wrap_and_quote($body, $LINE_LENGTH); |
| | | |
| | | $prefix .= "\n"; |
| | | $suffix = ''; |
| | | |
| | | if (intval($RCMAIL->config->get('reply_mode')) > 0) { // top-posting |
| | | if ($reply_mode > 0) { // top-posting |
| | | $prefix = "\n\n\n" . $prefix; |
| | | $suffix = ''; |
| | | } |
| | | else { |
| | | $suffix = "\n"; |
| | | } |
| | | } |
| | | else { |
| | |
| | | $prefix = '<p>' . rcube::Q($prefix) . "</p>\n"; |
| | | $prefix .= '<blockquote>'; |
| | | |
| | | if (intval($RCMAIL->config->get('reply_mode')) > 0) { // top-posting |
| | | if ($reply_mode > 0) { // top-posting |
| | | $prefix = '<br>' . $prefix; |
| | | $suffix = '</blockquote>'; |
| | | } |