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 listSetting = $('div.signup-display-signup-user-list-setting input[@type=radio]').get(0);
  15.       if (listSetting.value == 'embed-view') {
  16.         $('div.signup-user-list-view-settings').show();
  17.       }
  18.       else {
  19.         $('div.signup-user-list-view-settings').hide();
  20.       }
  21.     }
  22.   });
  23. };

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