Skip to content

Commit

Permalink
Fix #15582 Don't disable "Empty"-button after clicking
Browse files Browse the repository at this point in the history
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
  • Loading branch information
Tithugues committed Feb 25, 2020
1 parent c7fbd01 commit cbdd6d6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions js/database/structure.js
Expand Up @@ -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);
Expand Down

0 comments on commit cbdd6d6

Please sign in to comment.