mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[feature/avatars] Change avatar javascript to conform to new coding guidelines
PHPBB3-10018
This commit is contained in:
parent
8f8527a416
commit
a342e47038
3 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue