diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-31 09:16:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-31 09:16:45 +0300 |
commit | e4805b324cb9e620788bb2d625f633f2be20091d (patch) | |
tree | fcd95b7b35572e6a06e71178d791350467875c38 /app/assets/javascripts/issuable | |
parent | 95cb5e20a13cbea5e57c25df47aba1e2c9035466 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/issuable')
-rw-r--r-- | app/assets/javascripts/issuable/issuable_form.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/app/assets/javascripts/issuable/issuable_form.js b/app/assets/javascripts/issuable/issuable_form.js index ebcb47f056b..adcf2f536e6 100644 --- a/app/assets/javascripts/issuable/issuable_form.js +++ b/app/assets/javascripts/issuable/issuable_form.js @@ -11,7 +11,7 @@ const MR_SOURCE_BRANCH = 'merge_request[source_branch]'; const MR_TARGET_BRANCH = 'merge_request[target_branch]'; const DATA_ISSUES_NEW_PATH = 'data-new-issue-path'; -function organizeQuery(obj, isFallbackKey = false) { +export function organizeQuery(obj, isFallbackKey = false) { if (!obj[MR_SOURCE_BRANCH] && !obj[MR_TARGET_BRANCH]) { return obj; } @@ -83,11 +83,8 @@ export default class IssuableForm { this.searchTerm = getSearchTerm(form[0].getAttribute(DATA_ISSUES_NEW_PATH)); this.fallbackKey = getFallbackKey(); this.titleField = this.form.find('input[name*="[title]"]'); - this.descriptionField = this.form.find('textarea[name*="[description]"]'); this.draftCheck = document.querySelector('input.js-toggle-draft'); - if (!(this.titleField.length && this.descriptionField.length)) { - return; - } + if (!this.titleField.length) return; this.autosaves = this.initAutosave(); this.form.on('submit', this.handleSubmit); @@ -125,13 +122,6 @@ export default class IssuableForm { ); IssuableForm.addAutosave( autosaveMap, - 'description', - this.form.find('textarea[name*="[description]"]').get(0), - this.searchTerm, - this.fallbackKey, - ); - IssuableForm.addAutosave( - autosaveMap, 'confidential', this.form.find('input:checkbox[name*="[confidential]"]').get(0), this.searchTerm, |