diff --git a/ChangeLog b/ChangeLog index ca851a6b8d..d2eac89f98 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ phpMyAdmin - ChangeLog - issue #11981 Remove support for Swekey authentication - issue #11987 Remove code for no longer supported MSIE versions + issue #11962 Remove embedded PHP libraries, use composer to install them ++ issue #12017 Cannot easily select multiple tables when exporting 4.6.0.0 (not yet released) + issue #11456 Disabled storage engines diff --git a/db_export.php b/db_export.php index abd4b4c3d7..79b42d6b12 100644 --- a/db_export.php +++ b/db_export.php @@ -90,6 +90,7 @@ foreach (array('table_select', 'table_structure', 'table_data') as $one_key) { } } +$odd = true; foreach ($tables as $each_table) { if (isset($_GET['table_select']) && is_array($_GET['table_select'])) { $is_checked = PMA_getCheckedClause( @@ -117,9 +118,9 @@ foreach ($tables as $each_table) { $data_checked = $is_checked; } $table_html = htmlspecialchars($each_table['Name']); - $multi_values .= ''; + $multi_values .= ''; $multi_values .= ''; + . ' value="' . $table_html . '"' . $is_checked . ' class="checkall"/>'; $multi_values .= '' . str_replace(' ', ' ', $table_html) . ''; $multi_values .= '' @@ -129,6 +130,7 @@ foreach ($tables as $each_table) { . ''; $multi_values .= ''; + $odd = ! $odd; } // end for $multi_values .= "\n"; diff --git a/js/export.js b/js/export.js index 762ba4166e..8d59c6e6d0 100644 --- a/js/export.js +++ b/js/export.js @@ -522,10 +522,13 @@ function check_table_selected(row) { if (data && structure) { table_select.prop({checked: true, indeterminate: false}); + $row.addClass('marked'); } else if (data || structure) { table_select.prop({checked: true, indeterminate: true}); + $row.removeClass('marked'); } else { table_select.prop({checked: false, indeterminate: false}); + $row.removeClass('marked'); } } @@ -535,8 +538,10 @@ function toggle_table_select(row) { if (table_selected) { $row.find('input[type="checkbox"]:not(:disabled)').prop('checked', true); + $row.addClass('marked'); } else { $row.find('input[type="checkbox"]:not(:disabled)').prop('checked', false); + $row.removeClass('marked'); } }