1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 10:16:36 +02:00

[ticket/11552] Responsive tables in MCP

PHPBB3-11552
This commit is contained in:
Vjacheslav Trushkin
2013-09-27 17:57:18 +03:00
parent 961a27091e
commit cab21f3a1e
4 changed files with 40 additions and 5 deletions

View File

@@ -587,6 +587,7 @@ function insert_single_user(formId, user)
}
menu.append(links.clone(true));
menu.find('li.leftside, li.rightside').removeClass('leftside rightside');
menu.find('.inputbox').parents('li:first').css('white-space', 'normal');
copied = true;
}
@@ -693,5 +694,14 @@ function insert_single_user(formId, user)
$(this).addClass('responsive-hide');
}
});
// Hide empty responsive tables
$('table.responsive > tbody').each(function() {
var items = $(this).children('tr');
if (items.length == 0)
{
$(this).parent('table:first').addClass('responsive-hide');
}
});
});
})(jQuery);