gitlab-org--gitlab-foss/app/views/projects/merge_requests/branch_from.js.haml
Dmitriy Zaporozhets 09d24a1f67
Better title suggestion for new MR
Ex. if branch named "refactor-models" then title will be "Refactor models"

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-02 14:16:37 +03:00

7 lines
228 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.humanize}");
}