Skip to content

Commit 8f75a55

Browse files
authored
Reference in new issue modal: dont pre-populate issue title (go-gitea#17208)
* dont prepopulate issue title * cleanup
1 parent 47193db commit 8f75a55

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

web_src/js/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -1000,13 +1000,11 @@ async function initRepository() {
10001000
$this.closest('.dropdown').find('.menu').toggle('visible');
10011001

10021002
const content = $(`#comment-${$this.data('target')}`).text();
1003-
const subject = content.split('\n', 1)[0].slice(0, 255);
10041003

10051004
const poster = $this.data('poster-username');
10061005
const reference = $this.data('reference');
10071006

10081007
const $modal = $($this.data('modal'));
1009-
$modal.find('input[name="title"').val(subject);
10101008
$modal.find('textarea[name="content"]').val(`${content}\n\n_Originally posted by @${poster} in ${reference}_`);
10111009

10121010
$modal.modal('show');

0 commit comments

Comments
 (0)