Browse Source

Fix automatic quoting of selected text in replies

merge-requests/68/head
Deimos 6 years ago
parent
commit
9ac455d87d
  1. 3
      tildes/static/js/behaviors/comment-reply-button.js

3
tildes/static/js/behaviors/comment-reply-button.js

@ -35,7 +35,8 @@ $.onmount('[data-js-comment-reply-button]', function() {
var clone = document.importNode(template.content, true);
clone.querySelector('form').setAttribute('data-ic-post-to', postURL);
clone.querySelector('textarea').setAttribute('id', markdownID);
var textarea = clone.querySelector('textarea');
textarea.setAttribute('id', markdownID);
var preview = clone.querySelector('.form-markdown-preview');
preview.setAttribute('id', previewID);

Loading…
Cancel
Save