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:
18
phpBB/adm/style/admin.js
Normal file
18
phpBB/adm/style/admin.js
Normal 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);
|
Reference in New Issue
Block a user