Skip to content

Commit 9b59208

Browse files
committed
Issue 165: resumed the functionality where tabs can be opened with a #name anchor
1 parent ecea48c commit 9b59208

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tabs/tabs.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,9 @@
240240
});
241241

242242
// open initial tab
243-
if (location.hash && conf.tabs === "a" && root.find(conf.tabs + location.hash).length) {
243+
if (location.hash && conf.tabs == "a" && root.find("[href=" +location.hash+ "]").length) {
244244
self.click(location.hash);
245+
245246
} else {
246247
if (conf.initialIndex === 0 || conf.initialIndex > 0) {
247248
self.click(conf.initialIndex);
@@ -268,6 +269,7 @@
268269
// setup conf
269270
conf = $.extend({}, $.tools.tabs.conf, conf);
270271

272+
271273
this.each(function() {
272274
el = new Tabs($(this), paneSelector, conf);
273275
$(this).data("tabs", el);

0 commit comments

Comments
 (0)