Fixing the issue of hiding the structure options if the structure is not selected

Signed-off-by: Fawzi E. Abdulfattah <iifawzie@gmail.com>
This commit is contained in:
Fawzi E. Abdulfattah 2021-07-28 02:20:27 +02:00
parent c0f62bae78
commit 11706ad84c

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');