1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-22 14:23:05 +02:00
This commit is contained in:
Ryan Cramer
2019-10-21 06:15:30 -04:00
parent a7a91b668e
commit 8d12cb2340
2 changed files with 7 additions and 3 deletions

View File

@@ -85,9 +85,13 @@ var ProcessWireAdminTheme = {
// identify active tab and trigger event on it
var $activeTab = $tabs.children('.uk-active');
if($activeTab.length) {
var $activeContent = $($activeTab.find('a').attr('href'));
var href = $activeTab.find('a').attr('href');
if(href.indexOf('#') === 0) {
// href points to an #element id in current document
var $activeContent = $(href);
if($activeContent.length) ProcessWireAdminTheme.wireTabClick($activeContent);
}
}
}, 500);
}
},

File diff suppressed because one or more lines are too long