diff options
author | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-03-17 16:14:46 +0300 |
---|---|---|
committer | Jacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home> | 2016-03-25 15:07:57 +0300 |
commit | 22aef628085b486db02804246e71e154e6516156 (patch) | |
tree | 246dc64b18c7ffad81d5a649c1fd3c180684e90e /app/assets/javascripts/milestone_select.js.coffee | |
parent | e8d84110165d1358d90ebafb72ec91a441624527 (diff) |
New dropdowns work on merge requests too!
Diffstat (limited to 'app/assets/javascripts/milestone_select.js.coffee')
-rw-r--r-- | app/assets/javascripts/milestone_select.js.coffee | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/assets/javascripts/milestone_select.js.coffee b/app/assets/javascripts/milestone_select.js.coffee index 876b9d1ae86..6c7a3a5aa78 100644 --- a/app/assets/javascripts/milestone_select.js.coffee +++ b/app/assets/javascripts/milestone_select.js.coffee @@ -11,6 +11,7 @@ class @MilestoneSelect useId = $dropdown.data('use-id') defaultLabel = $dropdown.data('default-label') issuableId = $dropdown.data('issuable-id') + abilityName = $dropdown.data('ability-name') $selectbox = $dropdown.closest('.selectbox') $block = $selectbox.closest('.block') $value = $block.find('.value') @@ -70,14 +71,15 @@ class @MilestoneSelect .closest('.selectbox') .find('input[type="hidden"]') .val() + data = {} + data[abilityName] = {} + data[abilityName].milestone_id = selected $loading .fadeIn() $.ajax( type: 'PUT' url: issueUpdateURL - data: - issue: - milestone_id: selected + data: data ).done (data) -> $loading.fadeOut() $selectbox.hide() |