Skip to content
Snippets Groups Projects
Commit 1150bad2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix selectbox when submit MR from fork to origin

parent 51f06bad
No related branches found
No related tags found
3 merge requests!6886DELETE THIS MERGE REQUEST,!6150[6 5 stable] Install git update from PPA, not from source,!6092Better os support init.d
Loading
Loading
@@ -152,6 +152,10 @@ class Projects::MergeRequestsController < Projects::ApplicationController
@target_project = selected_target_project
@target_branches = @target_project.repository.branch_names
@target_branches
respond_to do |format|
format.js
end
end
 
def ci_status
Loading
Loading
:plain
$(".target_branch").html("#{escape_javascript(options_for_select(@target_branches))}");
$(".target_branch").trigger("select2:updated");
$('select.target_branch').select2({
width: 'resolve',
dropdownAutoWidth: true
});
$(".mr_target_commit").html("");
$(".target_branch").trigger("change");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment