diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-10 21:48:24 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-10 21:48:24 +0100 |
commit | c8c4ce2da5e5df61649588e0405aabbfa14dc9d7 (patch) | |
tree | d3965779909201b6d108e7dab72438edc416c77d /core/vendor/strengthify/jquery.strengthify.js | |
parent | 58d00bf6fb76327ecf972776d1736ec78f00848d (diff) | |
download | nextcloud-server-c8c4ce2da5e5df61649588e0405aabbfa14dc9d7.tar.gz nextcloud-server-c8c4ce2da5e5df61649588e0405aabbfa14dc9d7.zip |
Bump strengthify to 0.5.3
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/vendor/strengthify/jquery.strengthify.js')
-rw-r--r-- | core/vendor/strengthify/jquery.strengthify.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/vendor/strengthify/jquery.strengthify.js b/core/vendor/strengthify/jquery.strengthify.js index 046c2150210..204a0b33ccd 100644 --- a/core/vendor/strengthify/jquery.strengthify.js +++ b/core/vendor/strengthify/jquery.strengthify.js @@ -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) |