diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-06-27 04:53:17 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-27 05:07:59 +0300 |
commit | f6503f71f994c50f12abfb29233259816006391a (patch) | |
tree | 95320efd5cfb9ee0f2ac434002bda636b9eed676 /app/views/projects/network/show.html.haml | |
parent | e4472cee78c1904b801d25d51c14b557afc44816 (diff) |
Remove disableButtonIf[Any]EmptyField calls from forms
These have been replaced by the "requiresInput" behavior.
Diffstat (limited to 'app/views/projects/network/show.html.haml')
-rw-r--r-- | app/views/projects/network/show.html.haml | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/views/projects/network/show.html.haml b/app/views/projects/network/show.html.haml index c67a7d256a8..3d88f17de53 100644 --- a/app/views/projects/network/show.html.haml +++ b/app/views/projects/network/show.html.haml @@ -2,10 +2,10 @@ = render "head" .project-network .controls - = form_tag namespace_project_network_path(@project.namespace, @project, @id), method: :get, class: 'form-inline network-form' do |f| - = text_field_tag :extended_sha1, @options[:extended_sha1], placeholder: "Input an extended SHA1 syntax", class: 'search-input form-control input-mx-250 search-sha' - = button_tag class: 'btn btn-success btn-search-sha' do - %i.fa.fa-search + = form_tag namespace_project_network_path(@project.namespace, @project, @id), method: :get, class: 'form-inline network-form js-requires-input' do |f| + = text_field_tag :extended_sha1, @options[:extended_sha1], placeholder: "Input an extended SHA1 syntax", class: 'search-input form-control input-mx-250 search-sha', required: true + = button_tag class: 'btn btn-success' do + = icon('search') .inline.prepend-left-20 .checkbox.light = label_tag :filter_ref do @@ -16,8 +16,6 @@ = spinner nil, true :javascript - disableButtonIfEmptyField('#extended_sha1', '.btn-search-sha') - network_graph = new Network({ url: '#{namespace_project_network_path(@project.namespace, @project, @ref, @options.merge(format: :json))}', commit_url: '#{namespace_project_commit_path(@project.namespace, @project, 'ae45ca32').gsub("ae45ca32", "%s")}', |