[feature/avatars] Add self-invoking closure around avatars.js

PHPBB3-10018
This commit is contained in:
Igor Wiedler 2012-06-27 18:37:23 +02:00
parent b060667ac1
commit 2f3581fe3e
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,7 @@
(function($) { // Avoid conflicts with other libraries
"use strict";
function avatar_simplify() {
$('#av_options').hide();
@ -7,3 +11,5 @@ function avatar_simplify() {
avatar_simplify();
$('#avatar_driver').on('change', avatar_simplify);
})(jQuery); // Avoid conflicts with other libraries

View file

@ -1,3 +1,7 @@
(function($) { // Avoid conflicts with other libraries
"use strict";
function avatar_simplify() {
$('#av_options').hide();
@ -7,3 +11,5 @@ function avatar_simplify() {
avatar_simplify();
$('#avatar_driver').on('change', avatar_simplify);
})(jQuery); // Avoid conflicts with other libraries