Whenever I enable a custom edit page, for instance user edit, the fieldsets are no longer operable.

For instance on the user edit page we have the URL redirects for the user. This is a collapsible fieldset but when I use the custom edit page, the legend is no longer wrapped in an href, so it doesn't open and I cannot edit the values.

If I manually edit the class and remove or add the 'collapsed' style the fieldset opens and closes.

Can someone please explain what I'm missing. I'm suspecting that I am missing some javascript somewhere that gets included by the core edit pages.

Without this functionality, the custom edit pages are somewhat useless as far as I can tell.

Comments

jaylotta’s picture

Issue summary: View changes

Commenting out these lines in modules/user/user.js fix the problem.

// Add the password confirmation layer.
      $('input.password-confirm', outerWrapper).parent().prepend('<div class="password-confirm">' + translate['confirmTitle'] + ' <span></span></div>').addClass('confirm-parent');
      var confirmInput = $('input.password-confirm', outerWrapper);
      var confirmResult = $('div.password-confirm', outerWrapper);
      var confirmChild = $('span', confirmResult);

for some reason, on the custom edit page the translate['confirmTitle'] code is causing a javascript error as undefined so the javascript which initializes the fieldsets in not running.

I have no clue why this is not working only on the custom edit pages.

jaylotta’s picture

Category: Support request » Bug report
japerry’s picture

Status: Active » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.