aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/subsilver2/template/avatars.js
blob: 146aca94d300ec7021aef9c0ef6325f5bf360a98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(function($) {  // Avoid conflicts with other libraries

"use strict";

function avatarHide() {
    $('.[class^="avatar_option_"]').hide();

    var selected = $('#avatar_driver').val();
    $('.avatar_option_' + selected).show();
}

avatarHide();
$('#avatar_driver').bind('change', avatarHide);

})(jQuery); // Avoid conflicts with other libraries