diff --git a/core/misc/vertical-tabs.js b/core/misc/vertical-tabs.js index 4c0b3d74319a0bbf505b273a8515ffc79e8807b6..1421533506fb8a834f62a8a1d408df183521e184 100644 --- a/core/misc/vertical-tabs.js +++ b/core/misc/vertical-tabs.js @@ -45,7 +45,9 @@ Drupal.behaviors.verticalTabs = { tab_list.append(vertical_tab.item); $this .removeClass('collapsed') - .prop('open', true) + // prop() can't be used on browsers not supporting details element, + // the style won't apply to them if prop() is used. + .attr('open', true) .addClass('vertical-tabs-pane') .data('verticalTab', vertical_tab); if (this.id === focusID) { @@ -86,7 +88,7 @@ Drupal.verticalTab = function (settings) { var self = this; $.extend(this, settings, Drupal.theme('verticalTab', settings)); - this.link.attr('href', '#' + settings.fieldset.attr('id')); + this.link.attr('href', '#' + settings.details.attr('id')); this.link.click(function (e) { e.preventDefault();