[Groonga-commit] ranguba/epub-searcher at 8c35613 [master] Add validation for search input; required

Back to archive index

KITAITI Makoto null+****@clear*****
Tue Jan 13 20:24:13 JST 2015


KITAITI Makoto	2015-01-13 20:24:13 +0900 (Tue, 13 Jan 2015)

  New Revision: 8c3561327b286b4c32ac8a984a2f401aa3dfef26
  https://github.com/ranguba/epub-searcher/commit/8c3561327b286b4c32ac8a984a2f401aa3dfef26

  Message:
    Add validation for search input; required

  Modified files:
    app/views/_form_search.haml

  Modified: app/views/_form_search.haml (+1 -1)
===================================================================
--- app/views/_form_search.haml    2015-01-08 23:32:43 +0900 (445882a)
+++ app/views/_form_search.haml    2015-01-13 20:24:13 +0900 (e16d330)
@@ -1,7 +1,7 @@
 %form{:class => 'row', :action => '/', :method => 'GET'}
   %div{:class => 'form-group'}
     %div{:class => 'col-md-6 col-md-offset-2'}
-      %input{:type => 'search', :class => 'form-control', :name => 'q', :value => @query_words}
+      %input{:type => 'search', :class => 'form-control', :name => 'q', :value => @query_words, :required => true}
     %div{:class => 'col-md-2'}
       %button{:class => 'form-control btn btn-default'} Search
 
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index