Skip to content
Snippets Groups Projects
Commit fcfe8751 authored by Alfredo Sumaran's avatar Alfredo Sumaran
Browse files

Update dropdown text accordingly to selected item

parent 9b777f41
No related branches found
No related tags found
Loading
Pipeline #
Loading
@@ -6,6 +6,13 @@ class @IssueStatusSelect
Loading
@@ -6,6 +6,13 @@ class @IssueStatusSelect
$(el).glDropdown( $(el).glDropdown(
selectable: true selectable: true
fieldName: fieldName fieldName: fieldName
toggleLabel: (selected, el, instance) =>
label = 'Author'
$item = instance.dropdown.find('.is-active')
label = $item.text() if $item.length
label
clicked: (item, $el, e)->
e.preventDefault()
id: (obj, el) -> id: (obj, el) ->
$(el).data("id") $(el).data("id")
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment