Фиксы

Фикс поиска, верстки, удаление мусора
This commit is contained in:
Vitalychez 2015-01-29 14:48:55 +04:00
commit d9530fc4c0
5 changed files with 7 additions and 7 deletions

View file

@ -2285,7 +2285,7 @@ function get_title_match_topics($search)
{
$where_id = 'topic_id';
$sql = "SELECT topic_id FROM " . BB_TOPICS . "
WHERE MATCH (topic_title) AGAINST ('$title_match_sql'$search_bool_mode)
WHERE MATCH (topic_title) AGAINST ('$title_match_sql'$search_bool_mode) OR topic_title LIKE '%$title_match_sql%'
$where_forum";
}
else

View file

@ -505,7 +505,7 @@ var autocomplete = function (noCenter) {
$("div#autocomplete_popup").show(1000);
}
$("input#pass, input#pass_confirm, div#autocomplete_popup input").each(function () {
$("[name='new_pass'],[name='cfm_pass'], div#autocomplete_popup input").each(function () {
$(this).val(string_result);
});
};

View file

@ -181,7 +181,7 @@ $(function(){
<th class="thHead">{L_TOR_SEARCH_TITLE}</th>
</tr>
<tr>
<td class="row4" style="padding: 4px";>
<td class="row4" style="padding: 4px;">
<table class="fieldsets borderless bCenter pad_0" cellspacing="0">
<tr>

View file

@ -62,12 +62,12 @@ document.write('<input type="hidden" name="user_timezone" value="'+tz+'" />');
</tr>
<tr>
<td class="prof-title">{L_USERNAME}: *</td>
<td><!-- IF CAN_EDIT_USERNAME --><input id="username" onBlur="ajax.exec({ action: 'user_register', mode: 'check_name', username: $('#username').val()}); return false;" type="text" name="username" size="35" maxlength="25" value="{USERNAME}" /><!-- ELSE --><b>{USERNAME}</b><!-- ENDIF -->
<td><!-- IF CAN_EDIT_USERNAME --><input onBlur="ajax.exec({ action: 'user_register', mode: 'check_name', username: $('[name=\'username\']').val()}); return false;" type="text" name="username" size="35" maxlength="25" value="{USERNAME}" /><!-- ELSE --><b>{USERNAME}</b><!-- ENDIF -->
<span id="check_name"></span></td>
</tr>
<tr>
<td class="prof-title">{L_EMAIL}: * <!-- IF EDIT_PROFILE --><!-- ELSE IF $bb_cfg['reg_email_activation'] --><br /><h6>{L_EMAIL_EXPLAIN}</h6><!-- ENDIF --></td>
<td><input id="email" onBlur="ajax.exec({ action: 'user_register', mode: 'check_email', email: $('#email').val()}); return false;" type="text" name="user_email" size="35" maxlength="40" value="{USER_EMAIL}" <!-- IF EDIT_PROFILE --><!-- IF $bb_cfg['emailer_disabled'] -->readonly="readonly" style="color: gray;"<!-- ENDIF --><!-- ENDIF --> />
<td><input onBlur="ajax.exec({ action: 'user_register', mode: 'check_email', email: $('[name=\'user_email\']').val()}); return false;" type="text" name="user_email" size="35" maxlength="40" value="{USER_EMAIL}" <!-- IF EDIT_PROFILE --><!-- IF $bb_cfg['emailer_disabled'] -->readonly="readonly" style="color: gray;"<!-- ENDIF --><!-- ENDIF --> />
<span id="check_email"></span></td>
</tr>
<!-- IF EDIT_PROFILE and not ADM_EDIT -->
@ -86,7 +86,7 @@ document.write('<input type="hidden" name="user_timezone" value="'+tz+'" />');
<tr>
<td class="prof-title">{L_CONFIRM_PASSWORD}: * <!-- IF EDIT_PROFILE --><br /><h6>{L_PASSWORD_CONFIRM_IF_CHANGED}</h6><!-- ENDIF --></td>
<td>
<input id="pass_confirm" onBlur="ajax.exec({ action: 'user_register', mode: 'check_pass', pass: $('#pass').val(), pass_confirm: $('#pass_confirm').val() }); return false;" type="<!-- IF SHOW_PASS -->text<!-- ELSE -->password<!-- ENDIF -->" name="cfm_pass" size="35" maxlength="32" value="" />
<input onBlur="ajax.exec({ action: 'user_register', mode: 'check_pass', pass: $('[name=\'new_pass\']').val(), pass_confirm: $('#pass_confirm').val() }); return false;" type="<!-- IF SHOW_PASS -->text<!-- ELSE -->password<!-- ENDIF -->" name="cfm_pass" size="35" maxlength="32" value="" />
<span id="check_pass"></span>
</td>
</tr>

View file

@ -888,7 +888,7 @@ foreach ($cat_forum['c'] as $cat_id => $forums_ary)
$opt .= "</optgroup>\n";
}
$search_all_opt = '<option value="'. $search_all .'" value="fs-'. $search_all .'"'. (($forum_val == $search_all) ? HTML_SELECTED : '') .'>&nbsp;'. htmlCHR($lang['ALL_AVAILABLE']) ."</option>\n";
$search_all_opt = '<option value="'. $search_all .'" '. (($forum_val == $search_all) ? HTML_SELECTED : '') .'>&nbsp;'. htmlCHR($lang['ALL_AVAILABLE']) ."</option>\n";
$cat_forum_select = "\n".'<select id="fs-main" style="width: 100%;" name="'. $forum_key .'[]" multiple="multiple" size="'. $forum_select_size ."\">\n". $search_all_opt . $opt ."</select>\n";
// Sort dir