From cbdd6d6cc56b90af74768cb1453a0ffb4907f4c2 Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Sat, 23 Nov 2019 16:20:03 +0100 Subject: [PATCH] Fix #15582 Don't disable "Empty"-button after clicking Signed-off-by: Hugues Peccatte --- js/database/structure.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/js/database/structure.js b/js/database/structure.js index bc4c80857b..63532cee17 100644 --- a/js/database/structure.js +++ b/js/database/structure.js @@ -309,14 +309,6 @@ AJAX.registerOnload('database/structure.js', function () { var $tr = $thisAnchor.closest('tr'); $tr.find('.tbl_rows').text('0'); $tr.find('.tbl_size, .tbl_overhead').text('-'); - // Fetch inner span of this anchor - // and replace the icon with its disabled version - var span = $thisAnchor.html().replace(/b_empty/, 'bd_empty'); - // To disable further attempts to truncate the table, - // replace the a element with its inner span (modified) - $thisAnchor - .replaceWith(span) - .removeClass('truncate_table_anchor'); DatabaseStructure.adjustTotals(); } else { Functions.ajaxShowMessage(Messages.strErrorProcessingRequest + ' : ' + data.error, false);