Apply suggestions from code review
authorMatthias Schmidt <gravatronics@live.com>
Sun, 21 Mar 2021 08:11:42 +0000 (09:11 +0100)
committerGitHub <noreply@github.com>
Sun, 21 Mar 2021 08:11:42 +0000 (09:11 +0100)
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
wcfsetup/install/files/acp/templates/dataImport.tpl

index db17beb980c66361e41d2a6fd6068b42e913dc09..9fb4a75fbfc5f59bac217b37f6c7183e3bbd241f 100644 (file)
                                require(['Ajax', 'Ui/Confirmation'], (Ajax, UiConfirmation) => {
                                        document.getElementById('deleteMapping').addEventListener('click', () => {
                                                UiConfirmation.show({
-                                                       confirm: () => {
+                                                       confirm() {
                                                                Ajax.apiOnce({
                                                                        data: {
                                                                                actionName: 'resetMapping',
                                                                                className: 'wcf\\system\\importer\\ImportHandler',
                                                                        },
-                                                                       success: () => {
+                                                                       success() {
                                                                                window.location.reload();
                                                                        },
                                                                        url: 'index.php/AJAXInvoke/?t=' + SECURITY_TOKEN,