gitlab-org--gitlab-foss/app/views/projects/merge_requests/update_branches.js.haml
Dmitriy Zaporozhets ccae561f9b
Fix selectbox when submit MR from fork to origin
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-01-23 10:08:26 +02:00

9 lines
228 B
Text

:plain
$(".target_branch").html("#{escape_javascript(options_for_select(@target_branches))}");
$('select.target_branch').select2({
width: 'resolve',
dropdownAutoWidth: true
});
$(".mr_target_commit").html("");