mirror of
https://github.com/processwire/processwire.git
synced 2025-08-23 06:44:38 +02:00
Fix issue processwire/processwire-issues#1005
This commit is contained in:
@@ -85,8 +85,12 @@ var ProcessWireAdminTheme = {
|
|||||||
// identify active tab and trigger event on it
|
// identify active tab and trigger event on it
|
||||||
var $activeTab = $tabs.children('.uk-active');
|
var $activeTab = $tabs.children('.uk-active');
|
||||||
if($activeTab.length) {
|
if($activeTab.length) {
|
||||||
var $activeContent = $($activeTab.find('a').attr('href'));
|
var href = $activeTab.find('a').attr('href');
|
||||||
if($activeContent.length) ProcessWireAdminTheme.wireTabClick($activeContent);
|
if(href.indexOf('#') === 0) {
|
||||||
|
// href points to an #element id in current document
|
||||||
|
var $activeContent = $(href);
|
||||||
|
if($activeContent.length) ProcessWireAdminTheme.wireTabClick($activeContent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user