summaryrefslogtreecommitdiff
path: root/app/helpers/form_helper.rb
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-05-04 15:55:36 -0500
committerClement Ho <ClemMakesApps@gmail.com>2017-05-04 22:34:15 -0500
commitc4094b7ec4699811f928699ad67c90e1686da6e2 (patch)
treeae5535a19e15452baa0d08d4fd702a6a1465919b /app/helpers/form_helper.rb
parent3f6477fd1f6fc83e5ef8d03e7c2fe960294c8a98 (diff)
downloadgitlab-ce-c4094b7ec4699811f928699ad67c90e1686da6e2.tar.gz
Fix specs
Diffstat (limited to 'app/helpers/form_helper.rb')
-rw-r--r--app/helpers/form_helper.rb11
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