Commit adc83d25 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'ce-11194-fix-approvals-groups-all-available' into 'master'

Add close_select2 method to select2_helper

See merge request gitlab-org/gitlab-ce!27981
parents 0a7c9660 ecc25270
......@@ -35,6 +35,10 @@ module Select2Helper
execute_script("$('#{selector}').select2('open');")
end
def close_select2(selector)
execute_script("$('#{selector}').select2('close');")
end
def scroll_select2_to_bottom(selector)
evaluate_script "$('#{selector}').scrollTop($('#{selector}')[0].scrollHeight); $('#{selector}');"
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment