BigW Consortium Gitlab

_form.html.haml 436 Bytes
Newer Older
1
= form_for [@project.namespace.becomes(Namespace), @project, @merge_request], html: { class: 'merge-request-form form-horizontal gfm-form js-requires-input' } do |f|
2
  .merge-request-form-info
3
    = render 'shared/issuable/form', f: f, issuable: @merge_request
4 5

:javascript
6 7 8 9
  $('.assign-to-me-link').on('click', function(e){
    $('#merge_request_assignee_id').val("#{current_user.id}").trigger("change");
    e.preventDefault();
  });