Revert "Minor improvements (#191)"

This commit is contained in:
Roman Kelesidis 2023-06-24 11:36:35 +07:00
parent 20b56a1fd4
commit 5f58415811
3 changed files with 9 additions and 5 deletions

View File

@ -10,7 +10,7 @@
- Corrected translations [\#183](https://github.com/torrentpier/torrentpier-lts/pull/183) ([belomaxorka](https://github.com/belomaxorka)) - Corrected translations [\#183](https://github.com/torrentpier/torrentpier-lts/pull/183) ([belomaxorka](https://github.com/belomaxorka))
- Fixed $bb_cfg['pm_days_keep'] [\#180](https://github.com/torrentpier/torrentpier-lts/pull/180) ([belomaxorka](https://github.com/belomaxorka)) - Fixed $bb_cfg['pm_days_keep'] [\#180](https://github.com/torrentpier/torrentpier-lts/pull/180) ([belomaxorka](https://github.com/belomaxorka))
- IP storage bugfix [\#177](https://github.com/torrentpier/torrentpier-lts/pull/177) ([belomaxorka](https://github.com/belomaxorka)) - IP storage bugfix [\#177](https://github.com/torrentpier/torrentpier-lts/pull/177) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#172](https://github.com/torrentpier/torrentpier-lts/pull/172), [\#175](https://github.com/torrentpier/torrentpier-lts/pull/175), [\#176](https://github.com/torrentpier/torrentpier-lts/pull/176), [\#178](https://github.com/torrentpier/torrentpier-lts/pull/178), [\#179](https://github.com/torrentpier/torrentpier-lts/pull/179), [\#181](https://github.com/torrentpier/torrentpier-lts/pull/181), [\#187](https://github.com/torrentpier/torrentpier-lts/pull/187), [\#186](https://github.com/torrentpier/torrentpier-lts/pull/186), [\#191](https://github.com/torrentpier/torrentpier-lts/pull/191), [\#192](https://github.com/torrentpier/torrentpier-lts/pull/192), [\#194](https://github.com/torrentpier/torrentpier-lts/pull/194) ([belomaxorka](https://github.com/belomaxorka)) - Minor improvements [\#172](https://github.com/torrentpier/torrentpier-lts/pull/172), [\#175](https://github.com/torrentpier/torrentpier-lts/pull/175), [\#176](https://github.com/torrentpier/torrentpier-lts/pull/176), [\#178](https://github.com/torrentpier/torrentpier-lts/pull/178), [\#179](https://github.com/torrentpier/torrentpier-lts/pull/179), [\#181](https://github.com/torrentpier/torrentpier-lts/pull/181), [\#187](https://github.com/torrentpier/torrentpier-lts/pull/187), [\#186](https://github.com/torrentpier/torrentpier-lts/pull/186), [\#192](https://github.com/torrentpier/torrentpier-lts/pull/192), [\#194](https://github.com/torrentpier/torrentpier-lts/pull/194) ([belomaxorka](https://github.com/belomaxorka))
- Fixed empty user search box [\#171](https://github.com/torrentpier/torrentpier-lts/pull/171) ([belomaxorka](https://github.com/belomaxorka)) - Fixed empty user search box [\#171](https://github.com/torrentpier/torrentpier-lts/pull/171) ([belomaxorka](https://github.com/belomaxorka))
- Added some placeholders for input fields [\#173](https://github.com/torrentpier/torrentpier-lts/pull/173) ([belomaxorka](https://github.com/belomaxorka)) - Added some placeholders for input fields [\#173](https://github.com/torrentpier/torrentpier-lts/pull/173) ([belomaxorka](https://github.com/belomaxorka))

View File

@ -494,9 +494,9 @@ var array_rand = function (array) {
return Math.floor(result); return Math.floor(result);
}; };
var autocomplete = function (noCenter, pass_length = 8) { var autocomplete = function (noCenter) {
var string_result = ""; // Empty string var string_result = ""; // Empty string
for (var i = 1; i <= pass_length; i++) { for (var i = 1; i <= 12; i++) {
string_result += array_for_rand_pass[array_rand(array_for_rand_pass)]; string_result += array_for_rand_pass[array_rand(array_for_rand_pass)];
} }
@ -518,6 +518,10 @@ var autocomplete = function (noCenter, pass_length = 8) {
}; };
$(document).ready(function () { $(document).ready(function () {
$("span#autocomplete").click(function () {
autocomplete();
});
// перемещение окна // перемещение окна
var _X, _Y; var _X, _Y;
var _bMoveble = false; var _bMoveble = false;

View File

@ -26,7 +26,7 @@ ajax.callback.user_register = function(data){
<div> <div>
<input style="width: 200px;" value="" autocomplete="off" type="text"/> <input style="width: 200px;" value="" autocomplete="off" type="text"/>
<span onclick="$('#autocomplete_popup input').CopyToClipboard();" title="Copy to clipboard"></span> <span onclick="$('#autocomplete_popup input').CopyToClipboard();" title="Copy to clipboard"></span>
<span class="regenerate" title="{L_REGENERATE}" onclick="autocomplete(true, {#PASSWORD_MIN_LENGTH});"></span> <span class="regenerate" title="{L_REGENERATE}" onclick="autocomplete(true);"></span>
</div> </div>
</div> </div>
</div> </div>
@ -81,7 +81,7 @@ document.write('<input type="hidden" name="user_timezone" value="'+tz+'" />');
<td class="prof-title"><!-- IF EDIT_PROFILE -->{L_NEW_PASSWORD}: * <br /><h6>{L_PASSWORD_IF_CHANGED}</h6><!-- ELSE -->{L_PASSWORD}: *<!-- ENDIF --></td> <td class="prof-title"><!-- IF EDIT_PROFILE -->{L_NEW_PASSWORD}: * <br /><h6>{L_PASSWORD_IF_CHANGED}</h6><!-- ELSE -->{L_PASSWORD}: *<!-- ENDIF --></td>
<td> <td>
<input id="pass" type="<!-- IF SHOW_PASS -->text<!-- ELSE -->password<!-- ENDIF -->" name="new_pass" size="35" maxlength="32" value="" />&nbsp; <input id="pass" type="<!-- IF SHOW_PASS -->text<!-- ELSE -->password<!-- ENDIF -->" name="new_pass" size="35" maxlength="32" value="" />&nbsp;
<span onclick="autocomplete(false, {#PASSWORD_MIN_LENGTH});" id="autocomplete" title="{L_AUTOCOMPLETE}">&#9668;</span> &nbsp;<i class="med">{PASSWORD_LONG}</i> <span id="autocomplete" title="{L_AUTOCOMPLETE}">&#9668;</span> &nbsp;<i class="med">{PASSWORD_LONG}</i>
</td> </td>
</tr> </tr>
<tr> <tr>