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:
authorPhil Hughes <me@iamphill.com>2016-11-16 17:54:07 +0300
committerPhil Hughes <me@iamphill.com>2016-11-16 17:56:50 +0300
commit3e336475141524dfaf583a05288fc82545955ac7 (patch)
treec79b56896a27f2a55be66f756c49d785f9eadbd0 /app/assets/javascripts/gl_dropdown.js
parentcfcf5460b55c8f6245dd59e4531cd4b3b7abf114 (diff)
Stopped multiple requests with dropdowns
Opening the user dropdown currently sends 2 requests. This has been changed so only one is sent Closes #24131
Diffstat (limited to 'app/assets/javascripts/gl_dropdown.js')
-rw-r--r--app/assets/javascripts/gl_dropdown.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js
index 98e43c4d088..c016f25a7d3 100644
--- a/app/assets/javascripts/gl_dropdown.js
+++ b/app/assets/javascripts/gl_dropdown.js
@@ -249,7 +249,7 @@
_this.fullData = data;
_this.parseData(_this.fullData);
_this.focusTextInput();
- if (_this.options.filterable && _this.filter && _this.filter.input) {
+ if (_this.options.filterable && _this.filter && _this.filter.input && _this.filter.input.val().trim() !== '') {
return _this.filter.input.trigger('input');
}
};