Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Frazier <1212jtraceur@gmail.com>2016-09-01 19:44:10 +0300
committerJoseph Frazier <1212jtraceur@gmail.com>2016-10-03 19:16:02 +0300
commite12f7a3b71a7203397aceb78ba3b27f359a4e072 (patch)
tree19790f3e2f1d548888d8359f6741b7271f0aed54 /app/assets/javascripts/templates
parentad2b6cae0b299868eba9f8acf76bafe919408ccd (diff)
Combine requestFileSuccess arguments into `opts`
See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6149#note_14830172
Diffstat (limited to 'app/assets/javascripts/templates')
-rw-r--r--app/assets/javascripts/templates/issuable_template_selector.js.es68
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/templates/issuable_template_selector.js.es6 b/app/assets/javascripts/templates/issuable_template_selector.js.es6
index a1ca1c1941c..017008c8438 100644
--- a/app/assets/javascripts/templates/issuable_template_selector.js.es6
+++ b/app/assets/javascripts/templates/issuable_template_selector.js.es6
@@ -38,12 +38,12 @@
// separated by a blank line if the previous value is non-empty.
if (this.titleInput.val() === '') {
// If the title has not yet been set, focus the title input and
- // skip focusing the description input by setting `true` as the 2nd
- // argument to `requestFileSuccess`.
- this.requestFileSuccess(this.currentTemplate, true, append);
+ // skip focusing the description input by setting `true` as the
+ // `skipFocus` option to `requestFileSuccess`.
+ this.requestFileSuccess(this.currentTemplate, {skipFocus: true, append});
this.titleInput.focus();
} else {
- this.requestFileSuccess(this.currentTemplate, false, append);
+ this.requestFileSuccess(this.currentTemplate, {skipFocus: false, append});
}
return;
}