Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d2e5e7b7
Commit
d2e5e7b7
authored
Apr 18, 2013
by
alexpott
Browse files
Issue
#1972982
by nod_, jessebeach: Fixed Vertical tabs are broken.
parent
a15bf9ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/misc/vertical-tabs.js
View file @
d2e5e7b7
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment