Skip to content

Commit

Permalink
[ticket/10737] Removing obsolete code.
Browse files Browse the repository at this point in the history
PHPBB3-10737
  • Loading branch information
Suhaib Khan committed Mar 9, 2014
1 parent d2c764b commit 5ca0cdb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions phpBB/assets/javascript/core.js
Expand Up @@ -513,7 +513,7 @@ phpbb.timezonePreselectSelect = function(forceSelector) {
};

// Listen live search box events
$('.liveinput').keyup(function() {
$('.live-search-input').keyup(function() {
var str = this.value;
if (str.length < 3) {
return;
Expand All @@ -538,7 +538,7 @@ $('.liveinput').keyup(function() {
});
});

$('.liveinput').blur(function() {
$('.live-search-input').blur(function() {
setTimeout(function () {
var clone = $("#user-search-row-tpl").clone();
$("#livesearch").html("");
Expand Down
8 changes: 2 additions & 6 deletions phpBB/memberlist.php
Expand Up @@ -1001,17 +1001,13 @@
$result = $db->sql_query_limit($sql, 10);

$user_list = array();
$i = 1;
while ($row = $db->sql_fetchrow($result))
{
$j = ($i%2)+1;
$user_list[] = array("id" => $row['user_id'], "name" => $row['username']);
$i++;
}

$db->sql_freeresult($result);
$json_response = new \phpbb\json_response();
echo $json_response->send($user_list);
exit();
$json_response->send($user_list);
break;

case 'group':
Expand Down
4 changes: 2 additions & 2 deletions phpBB/styles/prosilver/template/memberlist_search.html
Expand Up @@ -9,10 +9,10 @@ <h2 class="solo">{L_FIND_USERNAME}</h2>
<fieldset class="fields1 column1">
<dl>
<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">
<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>
</table>
</dd>
Expand Down
4 changes: 2 additions & 2 deletions phpBB/styles/subsilver2/template/memberlist_search.html
Expand Up @@ -76,10 +76,10 @@
<tr>
<td class="row1"><b class="genmed">{L_USERNAME}{L_COLON}</b></td>
<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">
<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>
</table>
</td>
Expand Down

0 comments on commit 5ca0cdb

Please sign in to comment.