mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-19 08:01:27 +02: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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user