Remove legacy onfocus event handler
authorMagnus Hagander <magnus@hagander.net>
Thu, 3 Jan 2019 13:57:58 +0000 (14:57 +0100)
committerMagnus Hagander <magnus@hagander.net>
Thu, 3 Jan 2019 13:57:58 +0000 (14:57 +0100)
This one goes back 10+ years and nobody really knows what it's for. And
it does create issues for the content security policy, so let's just get
rid of it.

templates/docs/docspage.html

index 4e19e8fb580389f74fc9a06f54bce58d85e5a407..6be326dc64c8bdec2102a4db78a0142ea11c290c 100644 (file)
               <form id="docSearchForm" role="search" method="get" action="/search/">
                 <input type="hidden" name="u" value="/docs/{{page.display_version}}/" />
                 <div class="input-group">
-                  <input type="text" id="q" name="q" onfocus="if( this.value==this.defaultValue ) this.value='';" class="form-control" placeholder="Search the documentation for..."/>
+                  <input type="text" id="q" name="q" class="form-control" placeholder="Search the documentation for..."/>
                   <span class="input-group-btn">
                     <button class="btn btn-default" type="submit"><i class="fas fa-search"></i></button>
                   </span>