diff options
Diffstat (limited to 'modules/user/user.js')
-rw-r--r-- | modules/user/user.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/user/user.js b/modules/user/user.js new file mode 100644 index 000000000..caffaf270 --- /dev/null +++ b/modules/user/user.js @@ -0,0 +1,14 @@ +/* $Id$ */ + +/** + * On the admin/user/settings page, conditionally show all of the + * picture-related form elements depending on the current value of the + * "Picture support" radio buttons. + */ +if (Drupal.jsEnabled) { + $(document).ready(function () { + $('div.user-admin-picture-radios input[@type=radio]').click(function () { + $('div.user-admin-picture-settings')[['hide', 'show'][this.value]](); + }); + }); +} |