aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/admin.js
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-10-26 11:56:03 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-10-26 22:00:24 +0300
commit49e30b12432966711e31a884feb8460dd3555d92 (patch)
tree2c18adfaa25e76910cab80ab5a65bb5e3fbf32f2 /phpBB/adm/style/admin.js
parent7b3f63e8a37375b3ab087f775fdfbc54cd902380 (diff)
downloadforums-49e30b12432966711e31a884feb8460dd3555d92.tar
forums-49e30b12432966711e31a884feb8460dd3555d92.tar.gz
forums-49e30b12432966711e31a884feb8460dd3555d92.tar.bz2
forums-49e30b12432966711e31a884feb8460dd3555d92.tar.xz
forums-49e30b12432966711e31a884feb8460dd3555d92.zip
[ticket/11957] Responsive styles list
PHPBB3-11957
Diffstat (limited to 'phpBB/adm/style/admin.js')
-rw-r--r--phpBB/adm/style/admin.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/adm/style/admin.js b/phpBB/adm/style/admin.js
index 648d542325..b466c02071 100644
--- a/phpBB/adm/style/admin.js
+++ b/phpBB/adm/style/admin.js
@@ -54,6 +54,16 @@ function parse_document(container)
$this.find('td:nth-child(' + (i + 1) + ')').addClass(column.prop('className'));
});
+ // Styles table
+ if ($this.hasClass('styles')) {
+ $this.find('td:first-child[style]').each(function() {
+ var style = $(this).attr('style');
+ if (style.length) {
+ $(this).parent('tr').attr('style', style.toLowerCase().replace('padding', 'margin')).addClass('responsive-style-row');
+ }
+ });
+ }
+
// Find each header
if (!$this.data('no-responsive-header'))
{