diff options
author | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-09-14 22:56:40 +0300 |
---|---|---|
committer | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-10-17 21:03:53 +0300 |
commit | a189c38853ede323a0dc7ef170c788a7f687326c (patch) | |
tree | c4953d83c029cffb2b5d1d9cd86c2f8fa10b43d0 /phpBB | |
parent | befffe7472e86978289e182e6ec433679537dcbd (diff) | |
download | forums-a189c38853ede323a0dc7ef170c788a7f687326c.tar forums-a189c38853ede323a0dc7ef170c788a7f687326c.tar.gz forums-a189c38853ede323a0dc7ef170c788a7f687326c.tar.bz2 forums-a189c38853ede323a0dc7ef170c788a7f687326c.tar.xz forums-a189c38853ede323a0dc7ef170c788a7f687326c.zip |
[ticket/11552] Add .nojs or .hasjs to body
Add .nojs to body element, swap it to .hasjs when
JavaScript is enabled
PHPBB3-11552
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 3 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/overall_header.html | 2 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/simple_header.html | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 800fadd972..c36b4f5f01 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -414,6 +414,9 @@ function insert_single_user(formId, user) */ (function($) { $(document).ready(function() { + // Swap .nojs and .hasjs + $('#phpbb.nojs').toggleClass('nojs hasjs'); + // Focus forms $('form[data-focus]:first').each(function() { $('#' + this.getAttribute('data-focus')).focus(); diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html index 1b48298307..ce1317ab11 100644 --- a/phpBB/styles/prosilver/template/overall_header.html +++ b/phpBB/styles/prosilver/template/overall_header.html @@ -49,7 +49,7 @@ {$STYLESHEETS} </head> -<body id="phpbb" class="section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}"> +<body id="phpbb" class="nojs section-{SCRIPT_NAME} {S_CONTENT_DIRECTION}"> <div id="wrap"> <a id="top" accesskey="t"></a> diff --git a/phpBB/styles/prosilver/template/simple_header.html b/phpBB/styles/prosilver/template/simple_header.html index 309e1687b8..e922893588 100644 --- a/phpBB/styles/prosilver/template/simple_header.html +++ b/phpBB/styles/prosilver/template/simple_header.html @@ -26,7 +26,7 @@ </head> -<body id="phpbb" class="{S_CONTENT_DIRECTION}"> +<body id="phpbb" class="nojs {S_CONTENT_DIRECTION}"> <div id="simple-wrap"> <a id="top" accesskey="t"></a> |