Fix for Code

  1. Drupal.signupFormLocationSettingAutoAttach = function () {
  2.   $('div.signup-form-location-radios input[@type=radio]').click(function () {
  3.     if (this.value == 'node') {
  4.       $('div.signup-fieldset_collapsed-setting').show();
  5.     }
  6.     else {
  7.       $('div.signup-fieldset_collapsed-setting').hide();
  8.     }
  9.     if (this.value == 'none') {
  10.       $('div.signup-display-signup-user-list-setting').hide();
  11.       $('div.signup-user-list-view-settings').hide();
  12.     }
  13.     else {
  14.       var embedView = false;
  15.       $('div.signup-display-signup-user-list-setting input[@type=radio]').each(function() {
  16.         if (this.value == 'embed-view' && this.checked) {
  17.           embedView = true;
  18.         }
  19.       });
  20.       if (embedView) {
  21.         $('div.signup-user-list-view-settings').show();
  22.       }
  23.       else {
  24.         $('div.signup-user-list-view-settings').hide();
  25.       }
  26.     }
  27.   });
  28. };

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockcode>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Lines and paragraphs break automatically.

More information about formatting options