]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/peoplesearch.php
Created autofocus method to give focus to an element (primarily a form
[quix0rs-gnu-social.git] / actions / peoplesearch.php
index ba0f71e392165acb4fa9d55d99ab6765ebe2187d..38135ecbdeac6076ad1207e27705c5fab658bcfe 100644 (file)
@@ -85,6 +85,12 @@ class PeoplesearchAction extends SearchAction
             $profile->free();
         }
     }
+
+    function showScripts()
+    {
+        parent::showScripts();
+        $this->autofocus('q');
+    }
 }
 
 /**