aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/avatars.js
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/adm/style/avatars.js')
-rw-r--r--phpBB/adm/style/avatars.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/phpBB/adm/style/avatars.js b/phpBB/adm/style/avatars.js
new file mode 100644
index 0000000000..26ea24c0db
--- /dev/null
+++ b/phpBB/adm/style/avatars.js
@@ -0,0 +1,15 @@
+(function($) { // Avoid conflicts with other libraries
+
+"use strict";
+
+function avatarHide() {
+ $('#avatar_options > div').hide();
+
+ var selected = $('#avatar_driver').val();
+ $('#avatar_option_' + selected).show();
+}
+
+avatarHide();
+$('#avatar_driver').bind('change', avatarHide);
+
+})(jQuery); // Avoid conflicts with other libraries