Skip to content
Snippets Groups Projects
Commit f8a57701 authored by Stephen Mustgrave's avatar Stephen Mustgrave
Browse files

Issue #3418465 by cobblestone.consulting: Make compatible with other UI...

parent 962e7931
No related branches found
No related tags found
1 merge request!44Issue #3418465 by cobblestone.consulting: Make compatible with other UI...
Pipeline #134119 passed with warnings
......@@ -328,7 +328,7 @@
};
Drupal.behaviors.moduleFilterModulesTabs = {
attach() {
attach(context, settings) {
if (ModuleFilter.input !== undefined) {
const tabs = {};
......@@ -436,6 +436,8 @@
ModuleFilter.input.focus();
}
$(once('module-filter-build', '.modules-wrapper', context)).each(
function () {
buildTable();
ModuleFilter.tabs = new Tabs(tabs, ModuleFilter.wrapper);
......@@ -475,7 +477,9 @@
break;
default:
if (item.element.hasClass(`package__${activeTab.packageId}`)) {
if (
item.element.hasClass(`package__${activeTab.packageId}`)
) {
return true;
}
break;
......@@ -506,6 +510,8 @@
$(window)
.bind('hashchange.moduleFilter', selectTabByHash)
.triggerHandler('hashchange.moduleFilter');
},
);
}
},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment