diff --git a/misc/vertical-tabs.js b/misc/vertical-tabs.js index 3aa0f6f..edf21c6 100644 --- a/misc/vertical-tabs.js +++ b/misc/vertical-tabs.js @@ -78,6 +78,8 @@ Drupal.verticalTab = function (settings) { this.link.click(function () { self.focus(); + // Update the URL bar with the hash. + window.location.hash = self.title.text(); return false; }); @@ -86,6 +88,8 @@ Drupal.verticalTab = function (settings) { this.link.keydown(function(event) { if (event.keyCode == 13) { self.focus(); + // Update the URL bar with the hash. + window.location.hash = self.title.text(); // Set focus on the first input field of the visible fieldset/tab pane. $("fieldset.vertical-tabs-pane :input:visible:enabled:first").focus(); return false;