1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-04 07:47:34 +02:00

[ticket/11957] Include admin.js in footer

Include admin.js in footer, swap .hasjs and .nojs

PHPBB3-11957
This commit is contained in:
Vjacheslav Trushkin
2013-10-25 18:32:31 +03:00
parent 5779c300e4
commit 8567adf5db
5 changed files with 23 additions and 2 deletions

18
phpBB/adm/style/admin.js Normal file
View File

@@ -0,0 +1,18 @@
/**
* phpBB3 ACP functions
*/
/**
* Run onload functions
*/
(function($) {
$(document).ready(function() {
// Swap .nojs and .hasjs
$('body.nojs').toggleClass('nojs hasjs');
// Focus forms
$('form[data-focus]:first').each(function() {
$('#' + this.getAttribute('data-focus')).focus();
});
});
})(jQuery);