aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/admin.js
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-10-26 09:51:07 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-10-26 22:00:24 +0300
commit365d07ff6c481e604cd83425abe128eff3af70f0 (patch)
tree4d5e6946e97c86e26cb54972da97f41edfd02e9e /phpBB/adm/style/admin.js
parentc23c64cb6d848382542fc5d50899f9a921ffe805 (diff)
downloadforums-365d07ff6c481e604cd83425abe128eff3af70f0.tar
forums-365d07ff6c481e604cd83425abe128eff3af70f0.tar.gz
forums-365d07ff6c481e604cd83425abe128eff3af70f0.tar.bz2
forums-365d07ff6c481e604cd83425abe128eff3af70f0.tar.xz
forums-365d07ff6c481e604cd83425abe128eff3af70f0.zip
[ticket/11957] Responsive forms
PHPBB3-11957
Diffstat (limited to 'phpBB/adm/style/admin.js')
-rw-r--r--phpBB/adm/style/admin.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/adm/style/admin.js b/phpBB/adm/style/admin.js
index 385e49dc87..342859ce54 100644
--- a/phpBB/adm/style/admin.js
+++ b/phpBB/adm/style/admin.js
@@ -133,6 +133,17 @@ function parse_document(container)
$(this).parent('table:first').addClass('responsive-hide');
}
});
+
+ /**
+ * Fieldsets with empty <span>
+ */
+ container.find('fieldset dt > span:last-child').each(function() {
+ var $this = $(this);
+ if ($this.html() == '&nbsp;') {
+ $this.addClass('responsive-hide');
+ }
+
+ });
}
/**