mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-18 06:21:19 +02:00
[ticket/11552] Responsive tables in MCP
PHPBB3-11552
This commit is contained in:
@@ -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);
|
||||
|
@@ -33,7 +33,7 @@
|
||||
<h3>{L_MOST_WARNINGS}</h3>
|
||||
|
||||
<!-- IF .highest -->
|
||||
<table class="table1" cellspacing="0">
|
||||
<table class="table1 responsive mcp-warnings" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="name">{L_USERNAME}</th>
|
||||
@@ -67,7 +67,7 @@
|
||||
<h3>{L_LATEST_WARNINGS}</h3>
|
||||
|
||||
<!-- IF .latest -->
|
||||
<table class="table1" cellspacing="0">
|
||||
<table class="table1 responsive mcp-warnings" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="name">{L_USERNAME}</th>
|
||||
|
@@ -21,7 +21,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<table class="table1" cellspacing="0">
|
||||
<table class="table1 responsive mcp-warnings" cellspacing="0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="name">{L_USERNAME}</th>
|
||||
|
Reference in New Issue
Block a user