diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-02-12 16:28:53 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-03-02 15:11:15 -0500 |
commit | 76ed2afcfc2ae2b6ab3d3419a1183374a39022cc (patch) | |
tree | 9f102ebcd4ec208938898529782317029e304d61 /app/views/projects/milestones/_form.html.haml | |
parent | b5738edadeb7e77fa152fc3776f652d94156681c (diff) | |
download | gitlab-ce-76ed2afcfc2ae2b6ab3d3419a1183374a39022cc.tar.gz |
Change `js-quick-submit` behavior to expect the class on the form
Now it will work on any field inside that form, and it's easier to scope
new behavior, which is what we're adding next!
Diffstat (limited to 'app/views/projects/milestones/_form.html.haml')
-rw-r--r-- | app/views/projects/milestones/_form.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/milestones/_form.html.haml b/app/views/projects/milestones/_form.html.haml index 39aa2437e18..23f2bca7baf 100644 --- a/app/views/projects/milestones/_form.html.haml +++ b/app/views/projects/milestones/_form.html.haml @@ -1,4 +1,4 @@ -= form_for [@project.namespace.becomes(Namespace), @project, @milestone], html: {class: 'form-horizontal milestone-form gfm-form js-requires-input'} do |f| += form_for [@project.namespace.becomes(Namespace), @project, @milestone], html: {class: 'form-horizontal milestone-form gfm-form js-quick-submit js-requires-input'} do |f| -if @milestone.errors.any? .alert.alert-danger %ul @@ -9,12 +9,12 @@ .form-group = f.label :title, "Title", class: "control-label" .col-sm-10 - = f.text_field :title, maxlength: 255, class: "form-control js-quick-submit", required: true, autofocus: true + = f.text_field :title, maxlength: 255, class: "form-control", required: true, autofocus: true .form-group.milestone-description = f.label :description, "Description", class: "control-label" .col-sm-10 = render layout: 'projects/md_preview', locals: { preview_class: "md-preview" } do - = render 'projects/zen', f: f, attr: :description, classes: 'description form-control js-quick-submit' + = render 'projects/zen', f: f, attr: :description, classes: 'description form-control' = render 'projects/notes/hints' .clearfix .error-alert |