aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/adm/style/avatars.js6
-rw-r--r--phpBB/styles/prosilver/template/avatars.js6
2 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/adm/style/avatars.js b/phpBB/adm/style/avatars.js
index 252081ee08..cb19aa9b7a 100644
--- a/phpBB/adm/style/avatars.js
+++ b/phpBB/adm/style/avatars.js
@@ -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
diff --git a/phpBB/styles/prosilver/template/avatars.js b/phpBB/styles/prosilver/template/avatars.js
index 252081ee08..cb19aa9b7a 100644
--- a/phpBB/styles/prosilver/template/avatars.js
+++ b/phpBB/styles/prosilver/template/avatars.js
@@ -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