From 1a811c0bd10723ada73eb1c48a28cbc0775c6749 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 22 Jun 2024 12:52:09 +0800 Subject: Refactor image diff (#31444) And remove some jQuery functions --- web_src/js/vendor/jquery.are-you-sure.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'web_src/js/vendor') diff --git a/web_src/js/vendor/jquery.are-you-sure.js b/web_src/js/vendor/jquery.are-you-sure.js index e06da39fc9..e7bb203c5a 100644 --- a/web_src/js/vendor/jquery.are-you-sure.js +++ b/web_src/js/vendor/jquery.are-you-sure.js @@ -1,5 +1,6 @@ -// Fork of the upstream module. The only changes are the addition of `const` on -// lines 93 and 161 to make it strict mode compatible. +// Fork of the upstream module. The only changes are: +// * use export to make it work with ES6 modules. +// * the addition of `const` to make it strict mode compatible. /*! * jQuery Plugin: Are-You-Sure (Dirty Form Detection) @@ -13,7 +14,7 @@ * Version: 1.9.0 * Date: 13th August 2014 */ -(function($) { +export function initAreYouSure($) { $.fn.areYouSure = function(options) { @@ -192,4 +193,4 @@ initForm($form); }); }; -})(jQuery); +} -- cgit v1.2.3