Bump strengthify to 0.5.3

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-01-10 21:48:24 +01:00
parent 58d00bf6fb
commit c8c4ce2da5
No known key found for this signature in database
GPG Key ID: F941078878347C0C
3 changed files with 14 additions and 8 deletions

View File

@ -25,7 +25,7 @@
"select2": "~3.4.8",
"zxcvbn": "*",
"snapjs": "~2.0.0-rc1",
"strengthify": "^0.5.2",
"strengthify": "^0.5.3",
"underscore": "~1.8.0",
"bootstrap": "~3.3.6",
"backbone": "~1.2.3",

View File

@ -1,6 +1,6 @@
{
"name": "strengthify",
"version": "0.5.2",
"version": "0.5.3",
"homepage": "https://github.com/MorrisJobke/strengthify",
"authors": [
"Eve Ragins <eve.ragins@eve-corp.com",
@ -9,13 +9,13 @@
"description": "Combine jQuery and zxcvbn to create a password strength meter.",
"main": "jquery.strengthify.js",
"license": "MIT",
"_release": "0.5.2",
"_release": "0.5.3",
"_resolution": {
"type": "version",
"tag": "0.5.2",
"commit": "82d63c39de1b7b60ae38d24d0f866cba325904b5"
"tag": "0.5.3",
"commit": "a97e861762ccb17ce5f51d5c608b5d9e42732ae3"
},
"_source": "https://github.com/MorrisJobke/strengthify.git",
"_target": "^0.5.2",
"_target": "^0.5.3",
"_originalSource": "strengthify"
}

View File

@ -51,7 +51,8 @@
},
drawTitles: false,
drawMessage: false,
drawBars: true
drawBars: true,
$addAfter: null
};
return this.each(function() {
@ -175,8 +176,13 @@
elemId = $elem.attr('id');
var drawSelf = drawStrengthify.bind(this);
var $addAfter = options.$addAfter;
if (!$addAfter) {
$addAfter = $elem;
}
// add elements
$elem.after('<div class="strengthify-wrapper" data-strengthifyFor="' + $elem.attr('id') + '"></div>');
$addAfter.after('<div class="strengthify-wrapper" data-strengthifyFor="' + $elem.attr('id') + '"></div>');
if (options.drawBars) {
getWrapperFor(elemId)