mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Fixed empty user search box (#785)
This commit is contained in:
parent
5b566ea2b2
commit
727d34d268
2 changed files with 10 additions and 7 deletions
|
@ -934,7 +934,7 @@ function username_search($search_match)
|
||||||
$username_list .= '<option value="' . $username . '">' . $username . '</option>';
|
$username_list .= '<option value="' . $username . '">' . $username . '</option>';
|
||||||
}
|
}
|
||||||
if (!$username_list) {
|
if (!$username_list) {
|
||||||
$username_list = '<option>' . $lang['NO_MATCH'] . '</option>';
|
$username_list = '<option value="">' . $lang['NO_MATCH'] . '</option>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -128,12 +128,15 @@
|
||||||
<!--========================================================================-->
|
<!--========================================================================-->
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function refresh_username(selected_username)
|
function refresh_username(selected_username) {
|
||||||
{
|
if (selected_username === '') {
|
||||||
opener.document.forms['post'].{INPUT_NAME}.value = selected_username;
|
return;
|
||||||
opener.focus();
|
}
|
||||||
window.close();
|
|
||||||
}
|
opener.document.forms['post'].{INPUT_NAME}.value = selected_username;
|
||||||
|
opener.focus();
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form method="post" name="search" action="{SEARCH_ACTION}">
|
<form method="post" name="search" action="{SEARCH_ACTION}">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue