From 00734741af240ed4bcde1195e3584b48a998ee67 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Sat, 26 Oct 2013 21:08:24 +0300 Subject: [PATCH] [ticket/11957] Do not add empty headers to responsive tables PHPBB3-11957 --- phpBB/adm/style/admin.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/phpBB/adm/style/admin.js b/phpBB/adm/style/admin.js index f34002c568..08d93a2689 100644 --- a/phpBB/adm/style/admin.js +++ b/phpBB/adm/style/admin.js @@ -71,8 +71,9 @@ function parse_document(container) var cell = $(this), colspan = parseInt(cell.attr('colspan')), dfn = cell.attr('data-dfn'), - text = dfn ? dfn : cell.text(); + text = dfn ? dfn : cell.text().trim(); + if (text == ' ') text = ''; colspan = isNaN(colspan) || colspan < 1 ? 1 : colspan; for (i=0; i' + headers[column] + ''); + if (headers[column] != '') { + cell.prepend('' + headers[column] + ''); + } } else { cell.addClass('empty');