Merge #17043 - Fix #14796 - Fixing the issue of hiding the structure options while exporting

Pull-request: #17043
Fixes: #14796

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-08-09 23:07:52 +02:00
commit 657ae9132f
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -506,19 +506,11 @@ Export.checkTableSelectAll = function () {
};
Export.checkTableSelectStructureOrData = function () {
var strChecked = $('input[name="table_structure[]"]:checked').length;
var dataChecked = $('input[name="table_data[]"]:checked').length;
var autoIncrement = $('#checkbox_sql_auto_increment');
var pluginName = $('select#plugins').val();
var dataDiv = '#' + pluginName + '_data';
var structureDiv = '#' + pluginName + '_structure';
if (strChecked === 0) {
$(structureDiv).slideUp('slow');
} else {
$(structureDiv).slideDown('slow');
}
if (dataChecked === 0) {
$(dataDiv).slideUp('slow');