Skip to content

Commit

Permalink
Merge #17043 - Fix #14796 - Fixing the issue of hiding the structure …
Browse files Browse the repository at this point in the history
…options while exporting

Pull-request: #17043
Fixes: #14796

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Aug 9, 2021
2 parents 13c3074 + 11706ad commit 657ae91
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions js/src/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 657ae91

Please sign in to comment.