From ae75b2ee4099448f89af0fc6eaa9c508f36df5ef Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Fri, 26 Jun 2015 22:49:32 -0400 Subject: Remove requires-input from the Network Graph form The "Begin with the selected commit" checkbox requires the submit button to be enabled, even if the extended SHA1 input field is blank. --- app/views/projects/network/show.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/projects/network/show.html.haml b/app/views/projects/network/show.html.haml index 3d88f17de53..a88cf167511 100644 --- a/app/views/projects/network/show.html.haml +++ b/app/views/projects/network/show.html.haml @@ -2,8 +2,8 @@ = render "head" .project-network .controls - = 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 + = 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' do = icon('search') .inline.prepend-left-20 -- cgit v1.2.1