Révision 6ff32cea
Ajouté par Florent Torregrosa il y a environ 9 ans
drupal7/misc/vertical-tabs.js | ||
---|---|---|
134 | 134 |
tabShow: function () { |
135 | 135 |
// Display the tab. |
136 | 136 |
this.item.show(); |
137 |
// Show the vertical tabs. |
|
138 |
this.item.closest('.vertical-tabs').show(); |
|
137 | 139 |
// Update .first marker for items. We need recurse from parent to retain the |
138 | 140 |
// actual DOM element order as jQuery implements sortOrder, but not as public |
139 | 141 |
// method. |
... | ... | |
164 | 166 |
if ($firstTab.length) { |
165 | 167 |
$firstTab.data('verticalTab').focus(); |
166 | 168 |
} |
169 |
// Hide the vertical tabs (if no tabs remain). |
|
170 |
else { |
|
171 |
this.item.closest('.vertical-tabs').hide(); |
|
172 |
} |
|
167 | 173 |
return this; |
168 | 174 |
} |
169 | 175 |
}; |
Formats disponibles : Unified diff
Update core to 7.36