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 5bd789ffc..f04818489 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(''); } }