1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-09 19:26:53 +02:00

[feature/avatars] Change avatar javascript to conform to new coding guidelines

PHPBB3-10018
This commit is contained in:
Marc Alexander
2013-01-04 18:13:49 +01:00
parent 8f8527a416
commit a342e47038
3 changed files with 9 additions and 9 deletions

View File

@ -2,14 +2,14 @@
"use strict";
function avatar_hide() {
function avatarHide() {
$('#avatar_options > div').hide();
var selected = $('#avatar_driver').val();
$('#avatar_option_' + selected).show();
}
avatar_hide();
$('#avatar_driver').bind('change', avatar_hide);
avatarHide();
$('#avatar_driver').bind('change', avatarHide);
})(jQuery); // Avoid conflicts with other libraries

View File

@ -2,14 +2,14 @@
"use strict";
function avatar_hide() {
function avatarHide() {
$('#avatar_options > div').hide();
var selected = $('#avatar_driver').val();
$('#avatar_option_' + selected).show();
}
avatar_hide();
$('#avatar_driver').bind('change', avatar_hide);
avatarHide();
$('#avatar_driver').bind('change', avatarHide);
})(jQuery); // Avoid conflicts with other libraries

View File

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