From 5b34808c8ead9bd25fa732ed191f60d42d39de49 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sat, 24 Jun 2023 00:38:01 +0700 Subject: [PATCH] Minor improvements (#191) * Minor improvements * Update CHANGELOG.md --- CHANGELOG.md | 2 +- styles/js/main.js | 8 ++------ styles/templates/default/usercp_register.tpl | 4 ++-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc83f9dc..c0ad71cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ - 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)) - 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) ([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) ([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)) diff --git a/styles/js/main.js b/styles/js/main.js index ca5805e5..ad393bf7 100644 --- a/styles/js/main.js +++ b/styles/js/main.js @@ -494,9 +494,9 @@ var array_rand = function (array) { return Math.floor(result); }; -var autocomplete = function (noCenter) { +var autocomplete = function (noCenter, pass_length = 8) { var string_result = ""; // Empty string - for (var i = 1; i <= 12; i++) { + for (var i = 1; i <= pass_length; i++) { string_result += array_for_rand_pass[array_rand(array_for_rand_pass)]; } @@ -518,10 +518,6 @@ var autocomplete = function (noCenter) { }; $(document).ready(function () { - $("span#autocomplete").click(function () { - autocomplete(); - }); - // перемещение окна var _X, _Y; var _bMoveble = false; diff --git a/styles/templates/default/usercp_register.tpl b/styles/templates/default/usercp_register.tpl index 2c8423cc..efc5833c 100644 --- a/styles/templates/default/usercp_register.tpl +++ b/styles/templates/default/usercp_register.tpl @@ -26,7 +26,7 @@ ajax.callback.user_register = function(data){
- +
@@ -81,7 +81,7 @@ document.write(''); {L_NEW_PASSWORD}: *
{L_PASSWORD_IF_CHANGED}
{L_PASSWORD}: *   -  {PASSWORD_LONG} +  {PASSWORD_LONG}