1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-13 07:54:28 +02:00
Files
php-phpbb/phpBB/styles/subsilver2/template/avatars.js
2012-12-04 00:49:37 +01:00

16 lines
352 B
JavaScript

(function($) { // Avoid conflicts with other libraries
"use strict";
function avatar_hide() {
$('.[class^="avatar_option_"]').hide();
var selected = $('#avatar_driver').val();
$('.avatar_option_' + selected).show();
}
avatar_hide();
$('#avatar_driver').bind('change', avatar_hide);
})(jQuery); // Avoid conflicts with other libraries