Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHugues Peccatte <hugues.peccatte@gmail.com>2019-08-21 01:44:28 +0300
committerHugues Peccatte <hugues.peccatte@gmail.com>2019-08-21 01:47:06 +0300
commitb13c05edfa5effe098516ca6db4b84b3d9ea8693 (patch)
treedeedc6b1c635c2de021112665e761ec364b89a27 /js
parentac340e29b6c53c4722789650c9500891c6b1f5e8 (diff)
Toggling global collapse of tables now relies on tables items instead of j_tabs
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/designer/move.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/js/designer/move.js b/js/designer/move.js
index 5d3719822a..ef1fb9c041 100644
--- a/js/designer/move.js
+++ b/js/designer/move.js
@@ -1341,20 +1341,20 @@ function Small_tab_all (id_this) {
var value_sent = '';
if (icon.alt === 'v') {
- for (key in j_tabs) {
- if (document.getElementById('id_hide_tbody_' + key).innerHTML === 'v') {
- Small_tab(key, 0);
+ $('.designer_tab .small_tab,.small_tab2').each(function(index, element) {
+ if ($(element).text() === 'v') {
+ Small_tab($(element).attr('table_name'), 0);
}
- }
+ });
icon.alt = '>';
icon.src = icon.dataset.right;
value_sent = 'v';
} else {
- for (key in j_tabs) {
- if (document.getElementById('id_hide_tbody_' + key).innerHTML !== 'v') {
- Small_tab(key, 0);
+ $('.designer_tab .small_tab,.small_tab2').each(function(index, element) {
+ if ($(element).text() !== 'v') {
+ Small_tab($(element).attr('table_name'), 0);
}
- }
+ });
icon.alt = 'v';
icon.src = icon.dataset.down;
value_sent = '>';
@@ -1367,9 +1367,9 @@ function Small_tab_all (id_this) {
// invert max/min all tables
function Small_tab_invert () {
- for (var key in j_tabs) {
- Small_tab(key, 0);
- }
+ $('.designer_tab .small_tab,.small_tab2').each(function(index, element) {
+ Small_tab($(element).attr('table_name'), 0);
+ });
Re_load();
}