summaryrefslogtreecommitdiff
path: root/actions/groupsearch.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-09-03 19:42:50 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-09-03 19:42:50 +0000
commit277b464054b24f8d680ddbe762c9e438f6679592 (patch)
treec56e63d8177082385355af38c418813ee2595157 /actions/groupsearch.php
parent0c95734a6874608ea5ed44608cabeda7c3a1b4ea (diff)
Created autofocus method to give focus to an element (primarily a form
control) on page onload. Updated some of the pages to use autofocus.
Diffstat (limited to 'actions/groupsearch.php')
-rw-r--r--actions/groupsearch.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/actions/groupsearch.php b/actions/groupsearch.php
index bbd4c3a74..be15efc47 100644
--- a/actions/groupsearch.php
+++ b/actions/groupsearch.php
@@ -91,6 +91,12 @@ class GroupsearchAction extends SearchAction
$user_group->free();
}
}
+
+ function showScripts()
+ {
+ parent::showScripts();
+ $this->autofocus('q');
+ }
}
class GroupSearchResults extends GroupList