diff options
author | Sebastian Klingler <sklingler93@gmail.com> | 2018-02-04 01:10:08 +0300 |
---|---|---|
committer | Sebastian Klingler <sklingler93@gmail.com> | 2018-02-04 05:50:57 +0300 |
commit | 1cc09a919c7c5213665b7938b0661e86c636064d (patch) | |
tree | 7e6eb1687c2b6149f9c061963ea33372b9109108 | |
parent | f016c780f658cebedfb4ffd31ecf37b07139cdef (diff) |
Trigger change event on filename input when file template is applied
Add changelog
Follow event trigger convention
-rw-r--r-- | app/assets/javascripts/blob/file_template_mediator.js | 2 | ||||
-rw-r--r-- | changelogs/unreleased/issue-42689-new-file-template.yml | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/blob/file_template_mediator.js b/app/assets/javascripts/blob/file_template_mediator.js index 583e5faa506..37074301b51 100644 --- a/app/assets/javascripts/blob/file_template_mediator.js +++ b/app/assets/javascripts/blob/file_template_mediator.js @@ -235,7 +235,7 @@ export default class FileTemplateMediator { } setFilename(name) { - this.$filenameInput.val(name); + this.$filenameInput.val(name).trigger('change'); } getSelected() { diff --git a/changelogs/unreleased/issue-42689-new-file-template.yml b/changelogs/unreleased/issue-42689-new-file-template.yml new file mode 100644 index 00000000000..d6b77b87605 --- /dev/null +++ b/changelogs/unreleased/issue-42689-new-file-template.yml @@ -0,0 +1,5 @@ +--- +title: Trigger change event on filename input when file template is applied +merge_request: 16911 +author: Sebastian Klingler +type: fixed |