summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/gl_dropdown.js
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-01-12 10:22:51 -0500
committerPhil Hughes <me@iamphill.com>2017-01-20 09:23:18 +0000
commit6e08d5dc5ea3949ae2574e38e3e446c9c94dcd14 (patch)
tree67322f1619e1217ff62e82d5fe3cdb4059160c21 /app/assets/javascripts/gl_dropdown.js
parent5a41d92b9d73cbc41b649239e40a15955094f77e (diff)
downloadgitlab-ce-6e08d5dc5ea3949ae2574e38e3e446c9c94dcd14.tar.gz
Resets issue boards assignee dropdown
Closes #26514
Diffstat (limited to 'app/assets/javascripts/gl_dropdown.js')
-rw-r--r--app/assets/javascripts/gl_dropdown.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js b/app/assets/javascripts/gl_dropdown.js
index 7746535d9ed..9ac22f95330 100644
--- a/app/assets/javascripts/gl_dropdown.js
+++ b/app/assets/javascripts/gl_dropdown.js
@@ -512,12 +512,17 @@
// Append the menu into the dropdown
GitLabDropdown.prototype.appendMenu = function(html) {
+ return this.clearMenu().append(html);
+ };
+
+ GitLabDropdown.prototype.clearMenu = function() {
var selector;
selector = '.dropdown-content';
if (this.dropdown.find(".dropdown-toggle-page").length) {
selector = ".dropdown-page-one .dropdown-content";
}
- return $(selector, this.dropdown).empty().append(html);
+
+ return $(selector, this.dropdown).empty();
};
GitLabDropdown.prototype.renderItem = function(data, group, index) {