diff options
author | Phil Hughes <me@iamphill.com> | 2016-11-16 17:54:07 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-11-16 17:56:50 +0300 |
commit | 3e336475141524dfaf583a05288fc82545955ac7 (patch) | |
tree | c79b56896a27f2a55be66f756c49d785f9eadbd0 /app/assets/javascripts/gl_dropdown.js | |
parent | cfcf5460b55c8f6245dd59e4531cd4b3b7abf114 (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.js | 2 |
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'); } }; |