mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/10737] Removing obsolete code.
PHPBB3-10737
This commit is contained in:
parent
aa23cf64ca
commit
a74216527c
4 changed files with 8 additions and 12 deletions
|
@ -513,7 +513,7 @@ phpbb.timezonePreselectSelect = function(forceSelector) {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Listen live search box events
|
// Listen live search box events
|
||||||
$('.liveinput').keyup(function() {
|
$('.live-search-input').keyup(function() {
|
||||||
var str = this.value;
|
var str = this.value;
|
||||||
if (str.length < 3) {
|
if (str.length < 3) {
|
||||||
return;
|
return;
|
||||||
|
@ -538,7 +538,7 @@ $('.liveinput').keyup(function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.liveinput').blur(function() {
|
$('.live-search-input').blur(function() {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
var clone = $("#user-search-row-tpl").clone();
|
var clone = $("#user-search-row-tpl").clone();
|
||||||
$("#livesearch").html("");
|
$("#livesearch").html("");
|
||||||
|
|
|
@ -992,17 +992,13 @@ switch ($mode)
|
||||||
$result = $db->sql_query_limit($sql, 10);
|
$result = $db->sql_query_limit($sql, 10);
|
||||||
|
|
||||||
$user_list = array();
|
$user_list = array();
|
||||||
$i = 1;
|
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
$j = ($i%2)+1;
|
|
||||||
$user_list[] = array("id" => $row['user_id'], "name" => $row['username']);
|
$user_list[] = array("id" => $row['user_id'], "name" => $row['username']);
|
||||||
$i++;
|
|
||||||
}
|
}
|
||||||
|
$db->sql_freeresult($result);
|
||||||
$json_response = new \phpbb\json_response();
|
$json_response = new \phpbb\json_response();
|
||||||
echo $json_response->send($user_list);
|
$json_response->send($user_list);
|
||||||
exit();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'group':
|
case 'group':
|
||||||
|
|
|
@ -9,10 +9,10 @@
|
||||||
<fieldset class="fields1 column1">
|
<fieldset class="fields1 column1">
|
||||||
<dl>
|
<dl>
|
||||||
<dt><label for="username">{L_USERNAME}{L_COLON}</label></dt>
|
<dt><label for="username">{L_USERNAME}{L_COLON}</label></dt>
|
||||||
<dd><input type="text" name="username" id="username" value="{USERNAME}" class="inputbox liveinput" autocomplete="off" />
|
<dd><input type="text" name="username" id="username" value="{USERNAME}" class="inputbox live-search-input" autocomplete="off" />
|
||||||
<table class="table1 zebra-list" id="livesearch">
|
<table class="table1 zebra-list" id="livesearch">
|
||||||
<tr id="user-search-row-tpl" style="display: none;">
|
<tr id="user-search-row-tpl" style="display: none;">
|
||||||
<td><a class="user-search-link user-search-name" target='_blank'></a></td>
|
<td><a class="user-search-link user-search-name" target="_blank"></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</dd>
|
</dd>
|
||||||
|
|
|
@ -76,10 +76,10 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1"><b class="genmed">{L_USERNAME}{L_COLON}</b></td>
|
<td class="row1"><b class="genmed">{L_USERNAME}{L_COLON}</b></td>
|
||||||
<td class="row2">
|
<td class="row2">
|
||||||
<input class="post liveinput" type="text" name="username" value="{USERNAME}" autocomplete="off" />
|
<input class="post live-search-input" type="text" name="username" value="{USERNAME}" autocomplete="off" />
|
||||||
<table class="tablebg" id="livesearch">
|
<table class="tablebg" id="livesearch">
|
||||||
<tr id="user-search-row-tpl" style="display: none;">
|
<tr id="user-search-row-tpl" style="display: none;">
|
||||||
<td><a class="user-search-link user-search-name" target='_blank'></a></td>
|
<td><a class="user-search-link user-search-name" target="_blank"></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue