mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/11552] Add .nojs or .hasjs to body
Add .nojs to body element, swap it to .hasjs when JavaScript is enabled PHPBB3-11552
This commit is contained in:
parent
befffe7472
commit
a189c38853
3 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue