gitlab-org--gitlab-foss/app/views/projects/merge_requests/branch_from.js.haml
Dmitriy Zaporozhets 99fd58ce4a
Show full commit info at MR form
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-02-15 14:52:33 +02:00

7 lines
219 B
Text

:plain
$(".mr_source_commit").html("#{commit_to_html(@commit, @source_project, false)}");
var mrTitle = $('#merge_request_title');
if(mrTitle.val().length == 0) {
mrTitle.val("#{params[:ref].titleize}");
}