diff options
author | uran <uran@zeoalliance.com> | 2014-08-27 14:12:42 +0400 |
---|---|---|
committer | yglukhov <yuriy.glukhov@gmail.com> | 2014-12-23 17:04:39 +0300 |
commit | b34e83d261f30549062ee7c8b9e25f632bbcf163 (patch) | |
tree | ea15c995b7944384278ff0746e0425bc6b11cd70 /app/views/projects/branches | |
parent | 554719d985916d9f49f70b577382ab3a6da7eb7f (diff) |
Corrected validation of 'Create branch' and 'Create tag' buttons
Diffstat (limited to 'app/views/projects/branches')
-rw-r--r-- | app/views/projects/branches/new.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/branches/new.html.haml b/app/views/projects/branches/new.html.haml index a6623240da1..2719bcc33bc 100644 --- a/app/views/projects/branches/new.html.haml +++ b/app/views/projects/branches/new.html.haml @@ -5,7 +5,7 @@ %h3.page-title %i.fa.fa-code-fork New branch -= form_tag project_branches_path, method: :post, class: "form-horizontal" do += form_tag project_branches_path, method: :post, id: "new-branch-form", class: "form-horizontal" do .form-group = label_tag :branch_name, 'Name for new branch', class: 'control-label' .col-sm-10 @@ -19,6 +19,7 @@ = link_to 'Cancel', project_branches_path(@project), class: 'btn btn-cancel' :javascript + disableButtonIfAnyEmptyField($("#new-branch-form"), ".form-control", ".btn-create"); var availableTags = #{@project.repository.ref_names.to_json}; $("#ref").autocomplete({ |