From 12f54fd0cf8ff6d6a09c5abc6de512f9061cd85a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 2 Aug 2017 08:12:41 +0200 Subject: [PATCH] Fixed copy results to clipboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copy only results table, not all tables on the page. Fixes #13550 Signed-off-by: Michal Čihař --- ChangeLog | 1 + js/sql.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 70a4febe35..4beb205f14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ phpMyAdmin - ChangeLog - issue #13507 Fixed per server theme feature - issue #13523 Missing newline in ALTER exports - issue #13414 Fixed several compatibility issues with PHP 7.2 +- issue #13550 Fixed copy results to clipboard 4.7.3 (2017-07-20) - issue #13447 Large multi-line query removes Export operation and blanks query box options diff --git a/js/sql.js b/js/sql.js index fc0fb31ee3..5fc16bec8f 100644 --- a/js/sql.js +++ b/js/sql.js @@ -273,7 +273,7 @@ AJAX.registerOnload('sql.js', function () { }); textArea.value += '\n'; - $('tbody tr').each(function() { + $('.table_results tbody tr').each(function() { var childElementList = $(this).find('.data span'); childElementList.each(function(){ textArea.value += $(this).clone().children().remove().end().text() + '\t';