From ea00b2c7ed200c54555f4c2f078f0db7fdff27a7 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Fri, 16 Jun 2023 19:35:22 +0800 Subject: [PATCH] fix --- web_src/js/features/common-global.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_src/js/features/common-global.js b/web_src/js/features/common-global.js index c5f973f31cd6d..b6e1790a90241 100644 --- a/web_src/js/features/common-global.js +++ b/web_src/js/features/common-global.js @@ -268,10 +268,10 @@ function linkAction(e) { e.preventDefault(); // A "link-action" can post AJAX request to its "data-url" - // Then the browser is redirect to: the "redirect" in response, or "data-redirect" attribute, or current URL by reloading. - // If the "link-action" has "data-modal-confirm(-html)" attribute, a confirm modal dialog will be shown before taking action. + // Then the browser is redirected to: the "redirect" in response, or "data-redirect" attribute, or current URL by reloading. + // If the "link-action" has "data-modal-confirm" attribute, a confirm modal dialog will be shown before taking action. - const $this = $(e.target); + const $this = $(this); const redirect = $this.attr('data-redirect'); const doRequest = () => {