mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-28 02:01:52 +02:00
[feature/avatars] Fixup avatars.js rewrite
PHPBB3-10018
This commit is contained in:
parent
2f3581fe3e
commit
13f4bfabbe
phpBB
@ -3,13 +3,13 @@
|
||||
"use strict";
|
||||
|
||||
function avatar_simplify() {
|
||||
$('#av_options').hide();
|
||||
$('#av_options > div').hide();
|
||||
|
||||
var selected = $('#avatar_driver').val();
|
||||
$('#av_option_' + selected).show();
|
||||
}
|
||||
|
||||
avatar_simplify();
|
||||
$('#avatar_driver').on('change', avatar_simplify);
|
||||
$('#avatar_driver').bind('change', avatar_simplify);
|
||||
|
||||
})(jQuery); // Avoid conflicts with other libraries
|
||||
|
@ -3,13 +3,13 @@
|
||||
"use strict";
|
||||
|
||||
function avatar_simplify() {
|
||||
$('#av_options').hide();
|
||||
$('#av_options > div').hide();
|
||||
|
||||
var selected = $('#avatar_driver').val();
|
||||
$('#av_option_' + selected).show();
|
||||
}
|
||||
|
||||
avatar_simplify();
|
||||
$('#avatar_driver').on('change', avatar_simplify);
|
||||
$('#avatar_driver').bind('change', avatar_simplify);
|
||||
|
||||
})(jQuery); // Avoid conflicts with other libraries
|
||||
|
Loading…
x
Reference in New Issue
Block a user