diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-01 03:28:41 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-01 03:28:41 +0300 |
commit | ab42560ea6c2fade09b8436a893bf4a269e67c39 (patch) | |
tree | 61cea88f87dadfde2f622669bd82e1df01169d36 /app | |
parent | ff676333d0d257869a917a5e48e9717d219b8311 (diff) |
Return selected object if toggleLabel option is not defined
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/gl_dropdown.js.coffee | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/gl_dropdown.js.coffee b/app/assets/javascripts/gl_dropdown.js.coffee index d447013f637..ca8d9a16940 100644 --- a/app/assets/javascripts/gl_dropdown.js.coffee +++ b/app/assets/javascripts/gl_dropdown.js.coffee @@ -352,6 +352,8 @@ class GitLabDropdown # Toggle the dropdown label if @options.toggleLabel $(@el).find(".dropdown-toggle-text").text @options.toggleLabel + else + selectedObject else if !value? field.remove() |