From e4718539e46a24c57782ca5531013007e03d38d4 Mon Sep 17 00:00:00 2001 From: Dennis Vorobyov Date: Sun, 24 May 2026 09:01:19 +0100 Subject: [PATCH] Fix #19761 - Show loading message when copying table Add ajaxShowMessage call before the $.post in the #copyTable AJAX submit handler, mirroring the pattern used by the copy-database operation. Also adds the strCopyingTable JS message key. Fixes #19761 Signed-off-by: Dennis Vorobyov --- resources/js/table/operations.ts | 1 + src/Controllers/JavaScriptMessagesController.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/resources/js/table/operations.ts b/resources/js/table/operations.ts index d9c2f1aed4..affb6a9d6c 100644 --- a/resources/js/table/operations.ts +++ b/resources/js/table/operations.ts @@ -82,6 +82,7 @@ AJAX.registerOnload('table/operations.js', function () { const $form = $(this); prepareForAjaxRequest($form); const argsep = CommonParams.get('arg_separator'); + ajaxShowMessage(window.Messages.strCopyingTable, false); $.post($form.attr('action'), $form.serialize() + argsep + 'submit_copy=Go', function (data) { if (typeof data !== 'undefined' && data.success === true) { if ($form.find('input[name=\'switch_to_new\']').prop('checked')) { diff --git a/src/Controllers/JavaScriptMessagesController.php b/src/Controllers/JavaScriptMessagesController.php index 424593c68e..db297985c0 100644 --- a/src/Controllers/JavaScriptMessagesController.php +++ b/src/Controllers/JavaScriptMessagesController.php @@ -343,6 +343,9 @@ final readonly class JavaScriptMessagesController implements InvocableController 'strChangingCharset' => __('Changing charset'), 'strNo' => __('No'), + /* For table/operations.js */ + 'strCopyingTable' => __('Copying table'), + /* For Foreign key checks */ 'strForeignKeyCheck' => __('Enable foreign key checks'),