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..2068bdbbc4
--- /dev/null
+++ b/phpBB/adm/style/avatars.js
@@ -0,0 +1,15 @@
+(function($) { // Avoid conflicts with other libraries
+
+"use strict";
+
+function avatar_simplify() {
+ $('#av_options > div').hide();
+
+ var selected = $('#avatar_driver').val();
+ $('#av_option_' + selected).show();
+}
+
+avatar_simplify();
+$('#avatar_driver').bind('change', avatar_simplify);
+
+})(jQuery); // Avoid conflicts with other libraries