76aad9b76e
Make the following changes to deal with new behavior in Rails 4.1.2: * Use nested resources to avoid slashes in arguments to path helpers.
12 lines
595 B
Text
12 lines
595 B
Text
= form_for [@project.namespace.becomes(Namespace), @project, @merge_request], html: { class: 'merge-request-form form-horizontal gfm-form' } do |f|
|
|
.merge-request-form-info
|
|
= render 'projects/issuable_form', f: f, issuable: @merge_request
|
|
|
|
: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();
|
|
});
|
|
|
|
window.project_image_path_upload = "#{upload_image_namespace_project_path @project.namespace, @project}";
|