From e4335eb840b28275d85e6e61b919cc051e33d1fb Mon Sep 17 00:00:00 2001 From: thinkgem Date: Sun, 21 Jul 2024 17:40:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20PwdService=20=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=B1=BB=E6=96=B9=E4=BE=BF=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E9=87=8D=E5=86=99=E5=AF=86=E7=A0=81=E7=9B=B8=E5=85=B3=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/static/jquery-plugins/jquery.strength.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/src/main/resources/static/jquery-plugins/jquery.strength.js b/common/src/main/resources/static/jquery-plugins/jquery.strength.js index 5bd789ff..f0481848 100644 --- a/common/src/main/resources/static/jquery-plugins/jquery.strength.js +++ b/common/src/main/resources/static/jquery-plugins/jquery.strength.js @@ -42,9 +42,7 @@ function get_total(total, thisid) { var thismeter = $('div[data-meter="' + thisid + '"]').removeClass(); thismeter.parent().removeClass().addClass(options.strengthMeterClass); - if (total == 0) { - thismeter.html(''); - } else if (total == 1) { + if (total == 1) { thismeter.parent().addClass('veryweak'); thismeter.addClass('veryweak').html('

'+options.veryweakText+'

'); } else if (total == 2) { @@ -53,9 +51,11 @@ } else if (total == 3 || total == 4) { thismeter.parent().addClass('medium'); thismeter.addClass('medium').html('

'+options.mediumText+'

'); - } else { + } else if (total > 4) { thismeter.parent().addClass('strong'); thismeter.addClass('strong').html('

'+options.strongText+'

'); + } else { + thismeter.html(''); } }