Fix #15582 Don't disable "Empty"-button after clicking
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
parent
c7fbd01433
commit
cbdd6d6cc5
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user