1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +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:
Vjacheslav Trushkin
2013-09-14 22:56:40 +03:00
parent befffe7472
commit a189c38853
3 changed files with 5 additions and 2 deletions

View File

@@ -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();