diff options
author | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-10-25 18:32:31 +0300 |
---|---|---|
committer | Vjacheslav Trushkin <cyberalien@gmail.com> | 2013-10-26 22:00:23 +0300 |
commit | 8567adf5dbfc1d6363deb78b6ebf25a76857c9ac (patch) | |
tree | 3effe85a97c58a26973221c54a76feeb30df77d2 /phpBB/adm/style/admin.js | |
parent | 5779c300e47cec9533d95ad8691f362032d6f485 (diff) | |
download | forums-8567adf5dbfc1d6363deb78b6ebf25a76857c9ac.tar forums-8567adf5dbfc1d6363deb78b6ebf25a76857c9ac.tar.gz forums-8567adf5dbfc1d6363deb78b6ebf25a76857c9ac.tar.bz2 forums-8567adf5dbfc1d6363deb78b6ebf25a76857c9ac.tar.xz forums-8567adf5dbfc1d6363deb78b6ebf25a76857c9ac.zip |
[ticket/11957] Include admin.js in footer
Include admin.js in footer, swap .hasjs and .nojs
PHPBB3-11957
Diffstat (limited to 'phpBB/adm/style/admin.js')
-rw-r--r-- | phpBB/adm/style/admin.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/phpBB/adm/style/admin.js b/phpBB/adm/style/admin.js new file mode 100644 index 0000000000..9b2c9313ac --- /dev/null +++ b/phpBB/adm/style/admin.js @@ -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); |