2015-04-26 12:48:37 +05:30
|
|
|
= form_for [@project.namespace.becomes(Namespace), @project, @merge_request], html: { class: 'merge-request-form form-horizontal gfm-form' } do |f|
|
2014-09-02 18:07:02 +05:30
|
|
|
.merge-request-form-info
|
2015-04-26 12:48:37 +05:30
|
|
|
= render 'projects/issuable_form', f: f, issuable: @merge_request
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
:javascript
|
|
|
|
disableButtonIfEmptyField("#merge_request_title", ".btn-save");
|
|
|
|
$('.assign-to-me-link').on('click', function(e){
|
|
|
|
$('#merge_request_assignee_id').val("#{current_user.id}").trigger("change");
|
|
|
|
e.preventDefault();
|
|
|
|
});
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
window.project_uploads_path = "#{namespace_project_uploads_path @project.namespace, @project}";
|