From 5050cd04b116bc4516eba22bb2fff577a386db2f Mon Sep 17 00:00:00 2001 From: Saksham Gupta Date: Tue, 2 Feb 2021 21:01:18 +0530 Subject: [PATCH] Fixes:16611 - Renaming exported databases/tables/columns checkbox Signed-off-by: Saksham Gupta --- js/src/export.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/src/export.js b/js/src/export.js index e1600d1b34..4e26c2f5d5 100644 --- a/js/src/export.js +++ b/js/src/export.js @@ -869,12 +869,17 @@ Export.aliasToggleRow = function (elm) { } }; +Export.aliasRow = null; + Export.addAlias = function (type, name, field, value) { if (value === '') { return; } - var row = $('#alias_data tfoot tr').clone(); + if (Export.aliasRow === null) { + Export.aliasRow = $('#alias_data tfoot tr'); + } + var row = Export.aliasRow.clone(); row.find('th').text(type); row.find('td').first().text(name); row.find('input').attr('name', field);