diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-05-04 23:55:36 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-05-05 06:34:15 +0300 |
commit | c4094b7ec4699811f928699ad67c90e1686da6e2 (patch) | |
tree | ae5535a19e15452baa0d08d4fd702a6a1465919b /app/helpers | |
parent | 3f6477fd1f6fc83e5ef8d03e7c2fe960294c8a98 (diff) |
Fix specs
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/form_helper.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/helpers/form_helper.rb b/app/helpers/form_helper.rb index 639a720b024..53962b84618 100644 --- a/app/helpers/form_helper.rb +++ b/app/helpers/form_helper.rb @@ -18,7 +18,7 @@ module FormHelper def issue_dropdown_options(issuable, has_multiple_assignees = true) options = { - toggle_class: 'js-user-search js-assignee-search', + toggle_class: 'js-user-search js-assignee-search js-multiselect js-save-user-data', title: 'Select assignee', filter: true, dropdown_class: 'dropdown-menu-user dropdown-menu-selectable dropdown-menu-assignee', @@ -32,16 +32,15 @@ module FormHelper default_label: 'Assignee', 'max-select': 1, 'dropdown-header': 'Assignee', + multi_select: true, + 'input-meta': 'name', + 'always-show-selectbox': true, + current_user_info: current_user.to_json(only: [:id, :name]) } } if has_multiple_assignees - options[:toggle_class] += ' js-multiselect js-save-user-data' options[:title] = 'Select assignee(s)' - options[:data][:multi_select] = true - options[:data][:'input-meta'] = 'name' - options[:data][:'always-show-selectbox'] = true - options[:data][:current_user_info] = current_user.to_json(only: [:id, :name]) options[:data][:'dropdown-header'] = 'Assignee(s)' options[:data].delete(:'max-select') end |