Browse Source

Merge branch 'master' of https://github.com/habibutsu/Semantic-UI into next

pull/2850/head
Jack Lukic 9 years ago
parent
commit
2f3ada38ac
1 changed files with 2 additions and 2 deletions
  1. 4
      src/definitions/modules/tab.js

4
src/definitions/modules/tab.js

@ -609,8 +609,8 @@ $.fn.tab = function(parameters) {
tabPath = tabPath || activeTabPath;
tabPathArray = module.utilities.pathToArray(tabPath);
lastTab = module.utilities.last(tabPathArray);
$fullPathTab = $tabs.filter('[data-' + metadata.tab + '="' + lastTab + '"]');
$simplePathTab = $tabs.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
$fullPathTab = $tabs.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
$simplePathTab = $tabs.filter('[data-' + metadata.tab + '="' + lastTab + '"]');
return ($fullPathTab.length > 0)
? $fullPathTab
: $simplePathTab

Loading…
Cancel
Save