summaryrefslogtreecommitdiff
path: root/modules/user/user.js
blob: caffaf27021814c96dd6238e9eabf35a0edc2d89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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]]();
    });
  });
}