mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/avatars] Add self-invoking closure around avatars.js
PHPBB3-10018
This commit is contained in:
parent
b060667ac1
commit
2f3581fe3e
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
(function($) { // Avoid conflicts with other libraries
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
function avatar_simplify() {
|
function avatar_simplify() {
|
||||||
$('#av_options').hide();
|
$('#av_options').hide();
|
||||||
|
|
||||||
|
@ -7,3 +11,5 @@ function avatar_simplify() {
|
||||||
|
|
||||||
avatar_simplify();
|
avatar_simplify();
|
||||||
$('#avatar_driver').on('change', avatar_simplify);
|
$('#avatar_driver').on('change', avatar_simplify);
|
||||||
|
|
||||||
|
})(jQuery); // Avoid conflicts with other libraries
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
(function($) { // Avoid conflicts with other libraries
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
function avatar_simplify() {
|
function avatar_simplify() {
|
||||||
$('#av_options').hide();
|
$('#av_options').hide();
|
||||||
|
|
||||||
|
@ -7,3 +11,5 @@ function avatar_simplify() {
|
||||||
|
|
||||||
avatar_simplify();
|
avatar_simplify();
|
||||||
$('#avatar_driver').on('change', avatar_simplify);
|
$('#avatar_driver').on('change', avatar_simplify);
|
||||||
|
|
||||||
|
})(jQuery); // Avoid conflicts with other libraries
|
||||||
|
|
Loading…
Add table
Reference in a new issue