mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10786] Javascript toggle member search panel in memberlist.php
Search functions on the memberlist.php page are now rendered by default and displayed via javascript. If javascript is disabled the page still works as it previously did. PHPBB3-10786
This commit is contained in:
parent
babe07caef
commit
4306a7641f
2 changed files with 7 additions and 3 deletions
|
@ -194,12 +194,16 @@ $('#quick-mod-select').change(function () {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggle the member search panel in memberlist.php.
|
* Toggle the member search panel in memberlist.php.
|
||||||
|
*
|
||||||
|
* If user returns to search page after viewing results the search panel is automatically displayed.
|
||||||
|
* In any case the link will toggle the display status of the search panel and link text will be
|
||||||
|
* appropriately changed based on the status of the search panel.
|
||||||
*/
|
*/
|
||||||
$('#member_search').click(function () {
|
$('#member_search').click(function () {
|
||||||
$('#memberlist_search').slideToggle('fast');
|
$('#memberlist_search').slideToggle('fast');
|
||||||
phpbb.ajax_callbacks['alt_text'].call(this);
|
phpbb.ajax_callbacks['alt_text'].call(this);
|
||||||
//Focus on the username textbox if it's available and displayed
|
// Focus on the username textbox if it's available and displayed
|
||||||
if ($('#username').length > 0 && $('#memberlist_search').is(':visible')) {
|
if ($('#memberlist_search').is(':visible')) {
|
||||||
$('#username').focus();
|
$('#username').focus();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue