diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-26 21:53:17 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-26 22:07:59 -0400 |
commit | f6503f71f994c50f12abfb29233259816006391a (patch) | |
tree | 95320efd5cfb9ee0f2ac434002bda636b9eed676 /app/views/projects/branches | |
parent | e4472cee78c1904b801d25d51c14b557afc44816 (diff) | |
download | gitlab-ce-f6503f71f994c50f12abfb29233259816006391a.tar.gz |
Remove disableButtonIf[Any]EmptyField calls from forms
These have been replaced by the "requiresInput" behavior.
Diffstat (limited to 'app/views/projects/branches')
-rw-r--r-- | app/views/projects/branches/new.html.haml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/branches/new.html.haml b/app/views/projects/branches/new.html.haml index cac5dc91afd..29e82b93883 100644 --- a/app/views/projects/branches/new.html.haml +++ b/app/views/projects/branches/new.html.haml @@ -6,7 +6,7 @@ %h3.page-title %i.fa.fa-code-fork New branch -= form_tag namespace_project_branches_path, method: :post, id: "new-branch-form", class: "form-horizontal" do += form_tag namespace_project_branches_path, method: :post, id: "new-branch-form", class: "form-horizontal js-requires-input" do .form-group = label_tag :branch_name, 'Name for new branch', class: 'control-label' .col-sm-10 @@ -20,7 +20,6 @@ = link_to 'Cancel', namespace_project_branches_path(@project.namespace, @project), class: 'btn btn-cancel' :javascript - disableButtonIfAnyEmptyField($("#new-branch-form"), ".form-control", ".btn-create"); var availableTags = #{@project.repository.ref_names.to_json}; $("#ref").autocomplete({ |