Commit 2c6577a15ebe1efd93e2e2cfcce493fb838f3108

Authored by Dmitriy Zaporozhets
1 parent 8290e7cc

Suggest MR title based on from branch

app/views/projects/merge_requests/branch_from.js.haml
1 1 :plain
2 2 $(".mr_source_commit").html("#{commit_to_html(@commit)}");
  3 + var mrTitle = $('#merge_request_title');
  4 +
  5 + if(mrTitle.is(":empty")) {
  6 + mrTitle.val("#{params[:ref].titleize}");
  7 + }
... ...