summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2021-10-02 18:05:55 +0200
committerGitHub <noreply@github.com>2021-10-02 12:05:55 -0400
commit8f75a559eedd2ebc8790c4b361595bd9c1363a48 (patch)
tree761c751326b332950b35d8d51ba90d78b523bc3e
parent47193dbcd97555d0c72d3219a372d9d5d01755d3 (diff)
downloadgitea-8f75a559eedd2ebc8790c4b361595bd9c1363a48.tar.gz
gitea-8f75a559eedd2ebc8790c4b361595bd9c1363a48.zip
Reference in new issue modal: dont pre-populate issue title (#17208)
* dont prepopulate issue title * cleanup
-rw-r--r--web_src/js/index.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 12539c4ec9..4fda303a3c 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1000,13 +1000,11 @@ async function initRepository() {
$this.closest('.dropdown').find('.menu').toggle('visible');
const content = $(`#comment-${$this.data('target')}`).text();
- const subject = content.split('\n', 1)[0].slice(0, 255);
const poster = $this.data('poster-username');
const reference = $this.data('reference');
const $modal = $($this.data('modal'));
- $modal.find('input[name="title"').val(subject);
$modal.find('textarea[name="content"]').val(`${content}\n\n_Originally posted by @${poster} in ${reference}_`);
$modal.modal('show');