Update parsleyjs [MAILPOET-3386]

Note: deferred.pipe() fix is not implemented yet, see https://github.com/guillaumepotier/Parsley.js/pull/1347
This commit is contained in:
wxa
2021-02-18 19:07:02 +03:00
committed by Veljko V
parent 13da0d77fe
commit be320ad995
3 changed files with 13 additions and 8 deletions

View File

@@ -11,3 +11,8 @@ cat $INIT_CWD/node_modules/tinymce/icons/default/icons.min.js >> $INIT_CWD/asset
# Replace deprecated jQuery methods in the spectrum-colorpicker dependency
# Remove this when a patch is included in a package update
git apply $INIT_CWD/tasks/patches/spectrum-replace-jquery-deprecated.patch || true
# Replace deprecated jQuery methods in the parsley dependency
# Remove this when a patch is included in a package update.
# Note: deferred.pipe() fix is not implemented yet, see https://github.com/guillaumepotier/Parsley.js/pull/1347
sed -i -- "s/_focusedField\.focus()/_focusedField\.trigger('focus')/g" node_modules/parsleyjs/dist/parsley*.js