diff options
Diffstat (limited to 'app/views/projects/merge_requests/branch_from.js.haml')
-rw-r--r-- | app/views/projects/merge_requests/branch_from.js.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/merge_requests/branch_from.js.haml b/app/views/projects/merge_requests/branch_from.js.haml index 294acf76c38..d0a148575dc 100644 --- a/app/views/projects/merge_requests/branch_from.js.haml +++ b/app/views/projects/merge_requests/branch_from.js.haml @@ -1,2 +1,7 @@ :plain $(".mr_source_commit").html("#{commit_to_html(@commit, @source_project)}"); + var mrTitle = $('#merge_request_title'); + + if(mrTitle.is(":empty")) { + mrTitle.val("#{params[:ref].titleize}"); + } |