Commit d2e5e7b7 authored by alexpott's avatar alexpott

Issue #1972982 by nod_, jessebeach: Fixed Vertical tabs are broken.

parent a15bf9ee
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment