mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
js: Skip redundant jQuery object reconstruction.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
33c790e2fc
commit
b0dba411d9
@@ -538,7 +538,7 @@ export function quote_and_reply(opts) {
|
||||
const fence = fenced_code.get_unused_fence(message.raw_content);
|
||||
content += `${fence}quote\n${message.raw_content}\n${fence}`;
|
||||
|
||||
const placeholder_offset = $($textarea).val().indexOf(quoting_placeholder);
|
||||
const placeholder_offset = $textarea.val().indexOf(quoting_placeholder);
|
||||
compose_ui.replace_syntax(quoting_placeholder, content, $textarea);
|
||||
compose_ui.autosize_textarea($("#compose-textarea"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user